RGB_ICPC7's submission of Madoka and Ladder Decomposition | CodeChef