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

Обсуждение задачи 1352. Простые числа Мерсенна

Check this sequence, PLEASE!
Послано Alex Stoff 16 сен 2005 15:56

2,3,5,7,13,17,19,31,61,89,107,127,521,607,                 1279,2203,2281,3217,4253,4423,9689,9941,                   11213,19937,21701,23209,44497,86243,
110503,132049,216091,756839,859433,
1257787,1398269,2976221,3021377,6972593,
13466917,20996011;

Is it all right? Cuz I got WA...
Help me.
Re: Check this sequence, PLEASE!
Послано xj.ammo 18 сен 2005 21:18
Yes the sequence is correct. I don't know what is wrong. There must be a problem with your code
Here is my code
Послано Alex Stoff 18 сен 2005 22:14

Const ... {sequence}

Var n:array[1..40] of byte;
    t,i:byte;
Begin
  Readln(t);
  For i:=1 to t do Readln(n[i]);
  For i:=1 to t do Writeln(a[n[i]]);
END.
You know, I have TLE
Послано Alex Stoff 18 сен 2005 22:18

I cann't believe it! I Have TLE#4!
Re: You know, I have TLE
Послано Anatoliy 'Tolyan_NO' Tolstobroff 18 сен 2005 23:53

You hands is normal? :)
What do you mean "hands".
Послано Alex Stoff 19 сен 2005 00:34
I'm asking for help. What do you mean "hands".
Try printing the output as soon as you read it
Послано xj.ammo 19 сен 2005 23:24
Try printing the output as soon as you read it. You don't know the exact limit for T. So your program behaves abnormally for T>40.
Thanks a lot!
Послано Alex Stoff 20 сен 2005 19:51

Thank you! I got AC! Thanks.
Re: Thanks a lot!
Послано zsyz_lyj 4 мар 2009 10:35
Thanks