C++: Different output on 'Custom Invocation' and 'After Submission'
Difference between en1 and en2, changed 12 character(s)
I wrote a solution to [295B](http://codeforces.net/contest/295/submission/23564081)... After getting wrong ans on test case 4 I tested my solution on [Custom Innovation](http://codeforces.net/contest/295/customtest) and it is showing the correct output for the 4th case.↵

I tested my code in ideone also. [here](http://ideone.com/
IMONbzSr1E9Z) is the ideone test.↵
It produces correct output both on CUSTOM INVOCATION and on Ideone.↵

I can't figure out what is wrong with my submission. could somebody please help me?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English ShockProof 2017-01-06 03:48:37 157 Tiny change: 'hinking that it is the Jury's output.' -> 'hinking the opposite.'
en2 English ShockProof 2017-01-06 02:38:18 12 Tiny change: 'deone.com/IMONbz) is the i' -> 'deone.com/Sr1E9Z) is the i'
en1 English ShockProof 2017-01-06 02:22:03 582 Initial revision (published)