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

Обсуждение задачи 1716. Альтернативное решение

Unexpected helphull problem
Послано svr 27 окт 2009 10:45
During 3 days I couldn’t find appropriate way
to work with big binomials having lost of order
or overflow. Simple and clever routine was found and
gave satisfaction.
Re: Unexpected helphull problem
Послано dd (mp dpt USTU) 27 окт 2009 12:57
Re: Unexpected helphull problem
Послано Pavel Khaustov [Tomsk PU] 29 авг 2010 22:15
Could you give any hint: what kind of "simple routine" have you found? I also have got overflow / lost of order? Is it possible to avoid such problem in O(N^2) solution?
Re: Unexpected helphull problem
Послано Vedernikoff Sergey (HSE: АОП) 30 авг 2010 00:43
I don't know what your algo is, but my dynamic O(N^2) solution hasn't problems with overflows - all numbers is of order N
Re: Unexpected helphull problem
Послано Pavel Khaustov [Tomsk PU] 30 авг 2010 02:27
Thanks! I've got AC with O(N^2) DP. Every value was not exceeding N. But it's still interesting - how did some people get AC with 0.015sec and minimum of memory.
Re: Unexpected helphull problem
Послано Vedernikoff Sergey (HSE: АОП) 30 авг 2010 12:34
I suppose there exists some formula, but it is not trivial (like in this problem: http://acm.timus.ru/problem.aspx?space=1&num=1762)