A Chessboard Game
Can this problem be solved using dfs???....I have submitted the solution but getting TLE...
Codeforces Round 946 Solution Discussion