Output from codeforces judge coming different from terminal (same code)

Revision en2, by Himitsu, 2018-10-22 00:26:18

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.com/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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Himitsu 2018-10-22 00:27:22 3 Tiny change: 'submission.[http://co' -> 'submission: [http://co'
en2 English Himitsu 2018-10-22 00:26:18 6
en1 English Himitsu 2018-10-22 00:25:43 552 Initial revision (published)