http://codeforces.me/contest/940/submission/36654025
http://codeforces.me/contest/940/submission/36654074
IS THERE DIFFERENCE??????
PS.nothing offensive,but if you know why it happened,please telll me.I 've been in codeforces in years,and never seen thing like this.
If you are as.confused as me,then just go.
By the way,I noticed that this question gets some negatives,but with no comment.If you have some idea,just comment it.If not then you are not who I ask help to.Thanks.
Auto comment: topic has been updated by XenoAmess (previous revision, new revision, compare).
Auto comment: topic has been updated by XenoAmess (previous revision, new revision, compare).
(Disclaimer: I'm in no way a Java master, nor a JavaScript master for that matter.)
This looks like a non-deterministic behavior (bug) on the language side (Java & Nashorn). Perhaps the first submission will also get OK if rejudged.
You can also try adapting the I/O to JavaScript V8 and submit the solution in that language directly.
Well I used to think that there shall be no more bugs in java8 since it has been published for so long time. Maybe I am naive