Anders Kaseorg's submission of Curing Kingdom | CodeChef