Блог пользователя pks18

Автор pks18, история, 4 года назад, По-английски

I was solving a question from testing round 14 called Problem 910A. my code is working perfectly when I run it in my PC. But when I submitted it, I received a WA. On checking the testcase, I found that the answer which I get when I run it manually on my PC or on Codeforces Custom Test IDE, I get the correct answer. I am attaching the my submissions, please help. I am totally confused why the same code is giving different outputs at different times. 85273487 85273212 85272698 Please help!

  • Проголосовать: нравится
  • -6
  • Проголосовать: не нравится

»
4 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Fixed your submission. You needed to put j<n.

Submission

  • »
    »
    4 года назад, # ^ |
      Проголосовать: нравится +5 Проголосовать: не нравится

    Thank you very much! It was very blunder mistake but very difficult to catch for me. Thanks again.