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

watashi Samplz input [2] // Problem 1783. Nuclear Arms Race 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 ?
ucs6 Re: Samplz input // Problem 1783. Nuclear Arms Race 24 Apr 2012 08:32
I have the same question.
Can someone please aws?
Thanks!
MishaRash Re: Samplz input // Problem 1783. Nuclear Arms Race 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