|
|
you grab plot in your dfs in wrong place I have WA#2 and i don't understand what is wrong.. If I understood problem correctly, my program works well on all tests, which I tried. Edited by author 23.02.2020 18:27 What the hell is 10 test? :) try: 2 2 02 10 4 0 0 2 1 Answer: 3 1 @Tolstobrov Anatoliy this test should be invalid "Naturally, neither empire will join the alliance its rival is currently in", however it test that one empire is trying to claim a country owned by its rival. Edited by author 08.08.2014 21:05 Note that "the territories they have once acquired remain parts of the empire FOREVER". This is written less clearly in Russian statement. Then you will pass 10-th test. Good luck! Pleace! 6 12 000233434133 000233434143 001223434133 101023434143 101223434133 110233434143 4 0 4 2 1 Firstly, Krazil in union "1" so all points connected with left bottom point and marked as "1" are owned by Krazil (4 points). Same situation with Hexic which is in union "3". It has 9 points. When Krazil makes first turn, it adds all "0" which are connected with it's current territory. So after first turn Krazil has 19 points. And so on :) Edited by author 18.11.2012 14:15 I hope it will help begin 00 0 00 1 0 1 00 11 0 -------------- first 111 00 111 0 11 00 11 0 11 00 111 0 -------------- second 111 00 111 00 11 00 11 00 11 00 111 00 -------------- third 1111 00 1111 00 11 11 00 11 1 00 11 11 00 1111 00 -------------- last 1111 000 1111 000 11 11 000 11 1 000 11 11 000 1111 000 23 18 |
|
|