ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1837. Число Исенбаева

WA #17
Послано Pastafarianist 11 ноя 2011 03:26
Any suggestions please?
I'm a complete newbie at graph theory, so I guess this is something really stupid.
Re: WA #17
Послано Pastafarianist 11 ноя 2011 20:27
Solved it.
It wasn't actually a WA but a RT. The point is, #17 seems to contain 300 names with no Isenbaev. Thus, if you always give some fixed ID (say, zero) while giving other people other IDs, you will have an "index out of bounds" exception. My program caught that exception, printed stack trace (as you might have already guessed, my program is in Java) and exited with exit code 9000. Since stack trace is printed in stdout, Timus's checking system couldn't parse that output which resulted in WA.
Re: WA #17
Послано Pastafarianist 12 ноя 2011 11:54
*if you always give HIM some fixed ID, of course
Re: WA #17
Послано Yuxin Qin 29 сен 2012 09:29
Thank you very much.I got AC.>-<
Re: WA #17
Послано [TDUweAI] daminus 25 июн 2013 19:19
because, array need more than 300!!