I tried the following approach but got NZEC on Codechef IDE. The code worked perfectly fine on my Desktop. Can anyone explain what went wrong?
https://www.codechef.com/viewsolution/27510560
Consider the test case:
0 0
I tried the following approach but got NZEC on Codechef IDE. The code worked perfectly fine on my Desktop. Can anyone explain what went wrong?
https://www.codechef.com/viewsolution/27510560
Consider the test case:
0 0