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

Обсуждение задачи 1783. Ядерная гонка

Samplz input
Послано watashi 29 фев 2012 00:16
Can anyone explain me how we got the sample input ?

why "2 1 1 -2", or "2 1 1 0" is not an answer ?
Re: Samplz input
Послано ucs6 24 апр 2012 08:32
I have the same question.
Can someone please aws?
Thanks!
Re: Samplz input
Послано MishaRash 30 июл 2015 16:42
If the fourth order of Western Cuckooland dictator was '-2', then the number of warheads by the end of 4th month would have been 2, 5th — 0, that is less than in Eastern Cuckooland. The answer is not '0' because it is not the minimal value. Order '-1' is OK.
Maybe you should try drawing imaginary lines that will show you how much warheads there will be in Eastern Cuckooland according to every order of its leader to understand how we get the sample.

Edited by author 30.07.2015 16:46