Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

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

Автор alamin_2014, история, 8 лет назад, По-английски

please, My code was absolutely right but I got Wa test no 37. Anybody can help me why my code got wa test case 37 . I did not find any bug. problem : http://codeforces.com/contest/711/problem/A my code: http://pastebin.com/x8JYay6J

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

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

Line 13 and 19, you are using some positions in the char matrix before reading them. If you have not read them then they will contain random data and there is a a high probability then at some point that "random" values may coincide with (OO), so your program will assume it is a YES.

Never use a not initialized position, and avoid any pain.

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