Hello,
I am solving this question and it is failing in test case-3.
The test case is as follows:
8 2
Link to submission: http://codeforces.me/contest/1072/submission/44671042
Output on my terminal(on running the same code) is coming as the correct answer but judge is showing some other output.
I have no idea why this is happening. Can someone help? Thank You