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

Общий форум

how can the program get the asnwer in seconds?(problem 1107)
Послано Mao YanDong 12 авг 2001 12:24
THis program cost even 20 senconds.
program style;
  var
    i,j:word;
  begin
    for i:=1 to 50000 do
      for j:=1 to i do
        begin
        end;
  end.
Re: how can the program get the asnwer in seconds?(problem 1107)
Послано LYS 13 авг 2001 07:41
Only the first "for" is needed, though.
You must read and write output at the same time.
Послано Dinh Hong Minh 13 авг 2001 17:37
> THis program cost even 20 senconds.
> program style;
>   var
>     i,j:word;
>   begin
>     for i:=1 to 50000 do
>       for j:=1 to i do
>         begin
>         end;
>   end.
>