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

Обсуждение задачи 1438. Time Limit Exceeded

Показать все сообщения Спрятать все сообщения

OLE #4 I think I need help~~ Xiangru Chen 20 июл 2006 19:28
any hint please ?
Re: OLE #4 I think I need help~~ Kit 1 авг 2006 21:02
I was also stunned by this test, now I have AC.

i = 0
j = 0
loop1:
   loop2:
      j = j + 1
   if j < i goto loop2
   j = 0
   i = i + 1
if i < 100 goto loop1
(Consecutive labels)

Good luck.

Edited by author 12.08.2006 12:28
Re: OLE #4 I think I need help~~ Tipikin Evgeniy (USU) 12 авг 2006 12:18
I think that your program incorrectly interprets input program. For example, there are cycle in which there are print operation and your program incorrectly works with this cycle. Maybe your program enters in infinite cycle in that case. (The cycle is 'label' and 'goto label') I advise you examine work with labels.
Re: OLE #4 I think I need help~~ AterLux 11 сен 2010 05:51
check for backward and forward links

x = 1
goto lab
x = 10
lab:
x = x + 1
if x < 3 goto lab
print x