3dprinters Kattis problem: https://open.kattis.com/problems/3dprinter Author: Max Malmer, maxmalmer@live.se