|
|
Can anyone explain me how we got the sample input ? why "2 1 1 -2", or "2 1 1 0" is not an answer ? I have the same question. Can someone please aws? Thanks! 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 This test help you. test #1 : 5 5 0 1000 1000 1000 0 0 0 0 0 ans #1 : 500 500 0 0 -200 test #2 : 5 5 0 1 1 1 0 0 0 0 0 0 ans #2 : 1 0 0 0 0 what is test 9? 1 3 0 0 4 ans 2? Edited by author 11.07.2011 12:47 |
|
|