Victor Omelyanenko's submission of Yet Another Flipping Problem 2 | CodeChef