How to solve this ICPC problem??
How to solve this problem of ICPC Online round 2019: https://www.codechef.com/ICPCIN19/problems/SHUFGRID
Codeforces Round 1096 Solution Discussion