ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1783. Nuclear Arms Race

Samplz input
Posted by watashi 29 Feb 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
Posted by ucs6 24 Apr 2012 08:32
I have the same question.
Can someone please aws?
Thanks!
Re: Samplz input
Posted by MishaRash 30 Jul 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