fathimazuha's blog

By fathimazuha, 11 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

»
11 years ago, # |
  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).