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

Автор fathimazuha, 10 лет назад, По-английски

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 .

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

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

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).