My 5th original problem, where programming meets chess! XD (Though the idea is from a chess puzzle) : https://mirror.codeforces.com/contestInvitation/e57e48cd98d2b65e46999e8f702e3b962144f85f
Solution code : https://ideone.com/fQ9ZHy
Hope you enjoy solving the puzzle, and coding solution for the same. Thank you!
I'm on a roll of preparing the original problems! check out these : https://mirror.codeforces.com/blog/entry/144152 https://mirror.codeforces.com/blog/entry/144855 https://mirror.codeforces.com/blog/entry/144422 https://mirror.codeforces.com/blog/entry/144935



