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

Обсуждение задачи 1328. Файрболл

strider to admins [2] // Задача 1328. Файрболл 21 янв 2009 09:30
In my solution there is a product "width * N" squared, wich in maximum (1000*100)^2 = 10^10  gives more than INT_MAX. I use signed int and I've still got AC, while my program gives -1.#IND on the test
1000 1000
100
1 1 4 5

I suppose you should add boundary tests or soften condition to, for example, "max width and hight <= 100".
Sandro (USU) Re: to admins [1] // Задача 1328. Файрболл 22 янв 2009 10:45
Statement is updated. Read Site news.
Vedernikoff Sergey (HSE: EconomicsForever!) Re: to admins // Задача 1328. Файрболл 22 янв 2009 16:31
I can create new tests for this problem with N up to 100. Since with current limitations the problem has much more easier solution...