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

Обсуждение задачи 1023. Пуговицы

Please HELP ME! HERE IS CODE!!!!!! I GET TLE 12!!!!!THANK!!!!!
Послано CHIDEMYAN SERGEY 22 мар 2007 18:24


Edited by author 09.04.2007 20:21
Re: Please HELP ME! HERE IS CODE!!!!!! I GET TLE 12!!!!!THANK!!!!!
Послано Orlangur [KievNU] 23 мар 2007 02:31
Try some prime number near to 100 000 000 :P

Yours is O(k), you can do O(sqrt(k)) with the same idea, just think a bit :PPP
Re: Please HELP ME! HERE IS CODE!!!!!! I GET TLE 12!!!!!THANK!!!!!
Послано AlMag 23 мар 2007 13:06
What's wrong? WA#11

[code deleted]

I thought, it's correct.

Edited by author 23.03.2007 13:21
Re: Please HELP ME! HERE IS CODE!!!!!! I GET TLE 12!!!!!THANK!!!!!
Послано AlMag 23 мар 2007 13:22
Oh, I've found my mistake...
AC now.
P. S. Try test 116882
Re: Please HELP ME! HERE IS CODE!!!!!! I GET TLE 12!!!!!THANK!!!!!
Послано CHIDEMYAN SERGEY 23 мар 2007 16:59
Sorry!!!!HOW I can do BY O(sqrt(k))?
P.S.ANSWER FOR test 116882 IS 58440?

Edited by author 23.03.2007 17:16
Re: Please HELP ME! HERE IS CODE!!!!!! I GET TLE 12!!!!!THANK!!!!!
Послано CHIDEMYAN SERGEY 9 апр 2007 20:21
THANK TO KIRILL(ArcSTU) FOR PASCAL VERSION OF THIS PROBLEM!!!!!

Edited by author 14.04.2007 23:18

Edited by author 14.04.2007 23:20