cronenberg's blog

By cronenberg, history, 8 years ago, In English

In Round 405 Div.2 I was trying to solve this problem, I ran the code on Ideone and was getting right answers for all the given test case but when I submitted the solution it gave me WA on pretest 1. (Pretest 1 being the same test case on which it was giving correct answer on Ideone.) It cost me around 30 minutes and some mental trauma because I couldn't figure out what was wrong with my solution.

Ideone link

my submission : 25607066

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

I DON'T KNOW WHY IDEONE IS GIVING WRONG ANSWER

BUT CF,MY LOCAL COMPILER,CODECHEF IDE GIVES SAME RESULT ACCORDING TO WHICH YOU HAVE WA.

  • »
    »
    8 years ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Please don't use all uppercase letters. It makes it seem like you are shouting.