Simulate K rounds of folding a W by H rectangle along a vertical line and several horizontal folds, painting one rectangle each round through all layers, and report the unpainted area at the end.
Hard9GeometrySimulationImplementationDivide and conquerNo attempts yetTime limit2sMemory limit128 MB