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

Обсуждение задачи 1977. Энергетическая стена

test 7 - Wrong Answer
Послано Zeratul 11 сен 2013 19:39
Can't catch where is error. Is there an error in my algorythm?
х - energy quantum, amount of which is calculated by division (power_supply/sqr(d)), where 'power_supply' is amount of energy stored by previous save action and 'd' is an area in which wall segments are enforced. Energy portion for each segment is calculated by formula (d-delta)*x, where delta is a distance from the targeted segment. After energy distribution I just set power_supply to 0. Also energy saving and wall enforcing occurs after energy is generated for time passed from previous action.

Edited by author 11.09.2013 19:50
Re: test 7 - Wrong Answer
Послано MVM 3 апр 2015 23:45
If you get WA/RE on 7th test it makes sense to read statement carefully : n can be up to 10^9.