HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "Saving the Soldiers"

There is a contest!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

imesecanMay.28.2016 at 10:55:25 AM
0--- Test 1 ---
6 8
0 0 0 0 0 0
0 1 1 0 1 1
0 1 1 0 0 0
0 1 1 0 0 1
1 0 0 0 0 1
1 0 0 1 1 1
5 6
6 5
6 1
1 6
1 5
1 6
1 5
1 6

--- pattern ---
6

srekaMay.28.2016 at 12:02:11 PM
1--- Test 2 ---
6 16
0 0 0 0 1 0
0 1 1 0 1 1
0 1 1 0 0 0
0 1 1 0 0 1
1 0 0 0 0 1
1 0 0 1 1 1
6 3
6 2
2 3
5 2
4 2
2 2
1 4
1 3
1 1
4 5
5 6
5 2
5 2
5 2
5 2
5 2

--- pattern ---
9

42 65 73 74May.29.2016 at 02:06:39 PM
2Professor

I cant find anything wrong with the code. If it worked for 8 test case, and worked for 1153 solders by logic it must work if there were 1154 solders. What are the odds that the test case 9 is wrong?


www.contester.ru