Can someone please help me in debugging this code

Revision en2, by sourabh_jangid, 2019-08-15 08:53:48

I was trying to solve this problem (56E - Domino Principle). I am stuck on Test Case 30.(Link to my submission 58845497). I tried for hours but not been able to find my mistake. My algorithm is same as the editorial given, but it is giving wrong answer verdict on test case 30. Please help me in debugging the code, and also share some debugging technique, what you use during a contest.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English sourabh_jangid 2019-08-15 08:53:48 39 Tiny change: 'problem ([submission:56E]). I ' -> 'problem ([problem:56E]). I '
en1 English sourabh_jangid 2019-08-15 08:51:30 469 Initial revision (published)