Colorful Grids — ICPC India Regionals, Online Preliminary Round
Hi!
How to solve this problem: https://www.codechef.com/ACMIND16/problems/ICPC16E ?
Thanks!