Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

fathimazuha's blog

By fathimazuha, 13 years ago, In English

5745265 HI ! My submission from the last contest ( Div.2 382A — Ksenia and Pan Scales). I cannot understand the mistake. Your help is appreciated :) Thankyou .

  • Vote: I like it
  • +5
  • Vote: I do not like it

»
13 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Your output is exactly "AC|TL^@^@". You can't really see the last two characters. But, if you output to a file, you will see it. And that is because the last for loop causes an ArrayIndexOutOfBounds in s1 (i goes from zero to two).