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

Обсуждение задачи 1132. Квадратный корень

what's the mathematical method?
Послано Li, Yi 3 ноя 2001 16:46
No subject
Послано iii 4 ноя 2001 17:55
I have solution which take 1.001 sec for work...
It's - retrieval =)...
But - i can't make it faster... =(...
sorry
Послано iii 4 ноя 2001 19:36
>
sorry
Послано iii 4 ноя 2001 19:38
I wrote program that work 1.001 sec, but i can't make it
faster.
It's retrieval (searching)
Re: sorry
Послано Hider 4 ноя 2001 19:48
> I wrote program that work 1.001 sec, but i can't make it
> faster.
> It's retrieval (searching)
You program have not work just 1.001 sec. The test system
stopped your program when it had been runned more than 1
sec.
Re: sorry
Послано iii 5 ноя 2001 18:23
Thanx - i didn't know it =)
Re:
Послано svr 8 дек 2008 10:44
Use Tonelli algo for root(a,p) with precalculations
for all primes in [1..33000] and you will be first as I.
I don't say about evedent: basic number algos as
pow(a,n,p),inv(a,p) must be effectively implemented.
Also: there is simple Tonelli pseudocodes without
algebraic proves.