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

Правка en3, от Himitsu, 2018-10-22 00:27:22

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

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский Himitsu 2018-10-22 00:27:22 3 Tiny change: 'submission.[http://co' -> 'submission: [http://co'
en2 Английский Himitsu 2018-10-22 00:26:18 6
en1 Английский Himitsu 2018-10-22 00:25:43 552 Initial revision (published)