QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#142464#1135. Connecting SupertreesJasonwei#100 ✓103ms27124kbC++171.3kb2023-08-19 07:39:232024-07-04 01:48:15

詳細信息

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 1ms
memory: 3832kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1
1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0

result:

ok 

Test #2:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
2
1 1
1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1
1 0

result:

ok 

Test #3:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 1 1
1 1 1
1 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 1
1 0 0
1 0 0

result:

ok 

Test #4:

score: 0
Accepted
time: 0ms
memory: 4084kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1
1 1 1 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 1 1 1
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0
1 0 0 0 0

result:

ok 

Test #5:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 1 1 1 1 1 1 1 1
1 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0

result:

ok 

Test #6:

score: 0
Accepted
time: 4ms
memory: 4876kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 

Test #7:

score: 0
Accepted
time: 99ms
memory: 26900kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok 

Subtask #2:

score: 10
Accepted

Dependency #1:

100%
Accepted

Test #8:

score: 10
Accepted
time: 0ms
memory: 3804kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
2
1 0
0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0
0 0

result:

ok 

Test #9:

score: 0
Accepted
time: 0ms
memory: 4068kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 0 0
0 1 0
0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0
0 0 0
0 0 0

result:

ok 

Test #10:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0

result:

ok 

Test #11:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0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 0 0 ...

result:

ok 

Test #13:

score: 0
Accepted
time: 88ms
memory: 26892kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #14:

score: 0
Accepted
time: 1ms
memory: 3740kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 0 0
0 1 1 1 0
0 1 1 1 1
0 1 1 1 0
0 0 1 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #15:

score: 0
Accepted
time: 0ms
memory: 4096kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 1 0 1 0 0 0 0
0 1 0 1 0 1 0 0 0 1
0 0 1 1 0 0 0 0 1 0
1 1 1 1 1 0 1 0 1 0
0 0 0 1 1 1 0 0 1 1
1 1 0 0 1 1 1 1 1 0
0 0 0 1 0 1 1 1 0 0
0 0 0 0 0 1 1 1 1 1
0 0 1 1 1 1 0 1 1 0
0 1 0 0 1 0 0 1 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #16:

score: 0
Accepted
time: 2ms
memory: 4352kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 1 1 1 0 1 1 1 0 1 1 1 1 0 1 0 0 0 0 0 0 1 0 1 1 1 0 0 1 1 0 0 1 0 1 1 0 0 1 0 0 1 1 0 1 1 1 1 0 0 1 0 0 1 1 0 0 1 1 0 1 1 0 1 1 0 0 0 0 1 1 1 0 1 1 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 1 0 1 0 0 0 0 1 1 1 0 0 0 0 0 0 0 1 1 1 0 0 0 0 0 1 0 1 1 0 0 1 1 0 1 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #17:

score: 0
Accepted
time: 45ms
memory: 18972kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 1 0 1 1 1 1 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 0 1 1 0 0 1 1 1 0 1 1 0 1 1 0 1 1 1 1 0 1 0 0 1 0 1 1 0 1 1 1 0 0 0 0 0 1 1 1 0 0 1 0 0 1 0 1 0 0 1 1 0 1 0 0 0 1 0 0 1 0 1 0 0 1 1 0 0 0 0 1 1 0 0 0 0 0 1 0 0 0 1 1 1 1 0 0 1 1 1 0 0 0 1 1 1 1 1 0 1 1 1 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #18:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 1 0
1 1 1
0 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #19:

score: 0
Accepted
time: 0ms
memory: 4088kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
4
1 1 1 1
1 1 1 1
1 1 1 0
1 1 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #20:

score: 0
Accepted
time: 22ms
memory: 9184kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 ...

result:

ok 

Test #21:

score: 0
Accepted
time: 95ms
memory: 27104kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #22:

score: 0
Accepted
time: 84ms
memory: 26940kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #23:

score: 0
Accepted
time: 99ms
memory: 27120kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 1 1 0 1 0 1 0 0 0 1 1 0 0 1 1 0 1 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #25:

score: 0
Accepted
time: 43ms
memory: 19028kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #26:

score: 0
Accepted
time: 34ms
memory: 18996kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #27:

score: 0
Accepted
time: 102ms
memory: 27112kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 1 1 0 1 0 1 0 1 1 1 0 1 0 1 0 0 1 0 1 1 0 0 1 0 1 0 1 1 0 0 1 0 0 0 1 0 1 0 0 0 0 0 1 0 0 0 1 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Subtask #3:

score: 19
Accepted

Test #29:

score: 19
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
2
1 0
0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0
0 0

result:

ok 

Test #30:

score: 0
Accepted
time: 0ms
memory: 3804kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 0 0
0 1 0
0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0
0 0 0
0 0 0

result:

ok 

Test #31:

score: 0
Accepted
time: 0ms
memory: 4052kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1
1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0

result:

ok 

Test #32:

score: 0
Accepted
time: 0ms
memory: 3800kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
2
1 2
2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #33:

score: 0
Accepted
time: 0ms
memory: 4084kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 2 2
2 1 2
2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 1
1 0 1
1 1 0

result:

ok 

Test #34:

score: 0
Accepted
time: 0ms
memory: 3768kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 0 0
0 1 0 0 0
0 0 1 0 0
0 0 0 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0
0 0 0 0 0

result:

ok 

Test #35:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 0 0 0 0 0 0 0
0 1 0 0 0 0 0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 0 ...

result:

ok 

Test #37:

score: 0
Accepted
time: 94ms
memory: 26996kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #38:

score: 0
Accepted
time: 0ms
memory: 3744kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 2 2 2 2
2 1 2 2 2
2 2 1 2 2
2 2 2 1 2
2 2 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 1
1 0 1 0 0
0 1 0 1 0
0 0 1 0 1
1 0 0 1 0

result:

ok 

Test #39:

score: 0
Accepted
time: 0ms
memory: 4084kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 2 2 2 2 2 2 2 2 2
2 1 2 2 2 2 2 2 2 2
2 2 1 2 2 2 2 2 2 2
2 2 2 1 2 2 2 2 2 2
2 2 2 2 1 2 2 2 2 2
2 2 2 2 2 1 2 2 2 2
2 2 2 2 2 2 1 2 2 2
2 2 2 2 2 2 2 1 2 2
2 2 2 2 2 2 2 2 1 2
2 2 2 2 2 2 2 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 1
1 0 1 0 0 0 0 0 0 0
0 1 0 1 0 0 0 0 0 0
0 0 1 0 1 0 0 0 0 0
0 0 0 1 0 1 0 0 0 0
0 0 0 0 1 0 1 0 0 0
0 0 0 0 0 1 0 1 0 0
0 0 0 0 0 0 1 0 1 0
0 0 0 0 0 0 0 1 0 1
1 0 0 0 0 0 0 0 1 0

result:

ok 

Test #40:

score: 0
Accepted
time: 5ms
memory: 4584kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #41:

score: 0
Accepted
time: 90ms
memory: 26976kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #42:

score: 0
Accepted
time: 0ms
memory: 3856kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 2 2
0 1 0 0 2
0 0 1 2 0
2 0 2 1 2
2 2 0 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #43:

score: 0
Accepted
time: 0ms
memory: 4084kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 0 2 2 2 2 0 2
0 1 2 0 0 0 0 2 2 0
0 2 1 0 2 2 0 2 2 0
0 0 0 1 0 0 0 0 0 0
2 0 2 0 1 0 0 0 2 0
2 0 2 0 0 1 2 0 0 2
2 0 0 0 0 2 1 2 0 0
2 2 2 0 0 0 2 1 2 2
0 2 2 0 2 0 0 2 1 2
2 0 0 0 0 2 0 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #44:

score: 0
Accepted
time: 3ms
memory: 4096kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 2 0 0 0 0 0 2 0 0 2 2 2 2 2 0 2 0 2 2 0 2 2 2 2 2 0 2 2 2 2 0 0 2 0 2 0 2 0 2 0 2 0 2 2 2 2 0 0 2 2 2 0 0 2 0 2 2 2 2 2 2 0 0 0 0 2 0 0 2 0 0 2 0 2 2 2 0 2 2 2 0 2 0 2 0 0 0 2 2 0 0 0 2 0 2 2 0 2 0 0 0 2 0 2 2 2 0 2 2 2 0 0 0 2 0 2 2 2 2 0 2 2 0 2 2 2 0 2 2...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #45:

score: 0
Accepted
time: 53ms
memory: 19144kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 2 0 2 0 0 2 0 0 0 0 0 0 2 2 0 2 2 2 2 0 2 0 2 0 0 0 2 0 2 0 0 2 0 0 0 2 2 0 2 2 0 0 0 2 2 0 0 0 2 0 2 0 0 2 2 0 2 2 0 2 0 2 0 2 2 0 0 2 0 0 0 0 0 2 0 0 0 0 0 2 2 0 0 2 0 2 0 2 0 0 0 0 2 0 2 2 2 2 0 2 2 0 2 0 2 2 2 2 0 2 2 2 2 2 0 2 0 0 2 2 0 2 2 2 2 2 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #46:

score: 0
Accepted
time: 0ms
memory: 3764kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 2 2
2 1 0
2 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #47:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
4
1 2 2 2
2 1 0 2
2 0 1 2
2 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #48:

score: 0
Accepted
time: 0ms
memory: 3832kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 2 2 2 0
2 1 2 2 0
2 2 1 2 0
2 2 2 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 1 0
1 0 1 0 0
0 1 0 1 0
1 0 1 0 0
0 0 0 0 0

result:

ok 

Test #49:

score: 0
Accepted
time: 18ms
memory: 9304kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #50:

score: 0
Accepted
time: 91ms
memory: 27108kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0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0 0 0 0 ...

result:

ok 

Test #52:

score: 0
Accepted
time: 95ms
memory: 26976kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 2 0 2 2 0 2 0 0 2 2 0 2 0 0 2 0 0 2 2 0 2 0 2 0 2 0 0 0 0 2 2 2 2 0 2 0 2 0 2 2 2 2 0 0 2 2 0 2 0 2 0 0 0 2 0 0 0 2 0 0 2 2 0 2 0 0 2 0 0 2 2 2 2 0 2 2 0 0 0 0 0 0 2 0 0 2 0 0 0 0 2 2 2 2 0 2 2 0 0 2 0 0 0 0 0 2 0 0 0 0 2 0 0 2 0 2 0 0 0 0 0 0 0 0 2 2 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #53:

score: 0
Accepted
time: 33ms
memory: 18912kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #54:

score: 0
Accepted
time: 48ms
memory: 19028kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 2 0 0 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 2 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 0 0 0 0 0 0 2 0 0 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #55:

score: 0
Accepted
time: 92ms
memory: 26936kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #56:

score: 0
Accepted
time: 99ms
memory: 27060kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 2 0 2 0 0 0 2 0 0 0 0 0 2 2 0 2 0 2 2 0 0 0 0 2 2 2 2 2 2 2 0 0 2 2 0 0 2 0 2 2 0 0 0 2 2 0 0 0 2 0 0 2 0 2 0 0 0 0 0 0 0 2 2 0 2 2 2 0 0 0 0 0 2 0 2 0 2 2 0 0 2 2 0 2 0 0 2 2 0 2 2 0 2 2 0 0 2 2 2 0 0 2 2 0 0 2 0 0 0 0 2 2 0 2 0 2 0 2 0 2 2 2 0 0 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #57:

score: 0
Accepted
time: 34ms
memory: 18912kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Subtask #4:

score: 35
Accepted

Test #58:

score: 35
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 0 0
0 1 0
0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0
0 0 0
0 0 0

result:

ok 

Test #59:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
3
1 2 2
2 1 2
2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 1
1 0 1
1 1 0

result:

ok 

Test #60:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 0 0
0 1 1 1 1
0 1 1 1 1
0 1 1 1 1
0 1 1 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0
0 0 1 1 1
0 1 0 0 0
0 1 0 0 0
0 1 0 0 0

result:

ok 

Test #61:

score: 0
Accepted
time: 21ms
memory: 9312kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 ...

result:

ok 

Test #62:

score: 0
Accepted
time: 94ms
memory: 26904kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #63:

score: 0
Accepted
time: 96ms
memory: 26996kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #64:

score: 0
Accepted
time: 95ms
memory: 26840kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 1 1 0 1 0 1 0 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 1 0 1 1 1 1 1 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 1 1 1 0 0 1 1 0 1 1 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 0 1 1 1 0 1 1 0 0 0 1 1 1 0 0 0 1 1 0 0 1 0 1 1 1 1 0 0 1 1 1 1 1 0 0 1 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 1 1 0 1 0 1 0 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 0 1 1 1 0 1 1 1 1 1 0 0 0 0 0 1 0 1 0 0 1 0 0 0 0 1 1 1 0 0 1 1 0 1 1 0 1 0 0 0 1 0 1 0 0 1 0 0 1 0 0 1 0 1 0 1 0 1 1 1 0 0 1 1 1 1 0 1 1 1 0 1 1 0 0 0 1 1 1 0 0 0 1 1 0 0 1 0 1 1 1 1 0 0 1 1 1 1 1 0 0 1 0 ...

result:

ok 

Test #65:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 2 2 2 0
2 1 2 2 0
2 2 1 2 0
2 2 2 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 1 0
1 0 1 0 0
0 1 0 1 0
1 0 1 0 0
0 0 0 0 0

result:

ok 

Test #66:

score: 0
Accepted
time: 26ms
memory: 9424kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #67:

score: 0
Accepted
time: 98ms
memory: 27100kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 2 0 0 0 2 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #68:

score: 0
Accepted
time: 99ms
memory: 27124kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #69:

score: 0
Accepted
time: 103ms
memory: 26840kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 2 0 2 2 0 2 0 0 2 2 0 2 0 0 2 0 0 2 2 0 2 0 2 0 2 0 0 0 0 2 2 2 2 0 2 0 2 0 2 2 2 2 0 0 2 2 0 2 0 2 0 0 0 2 0 0 0 2 0 0 2 2 0 2 0 0 2 0 0 2 2 2 2 0 2 2 0 0 0 0 0 0 2 0 0 2 0 0 0 0 2 2 2 2 0 2 2 0 0 2 0 0 0 0 0 2 0 0 0 0 2 0 0 2 0 2 0 0 0 0 0 0 0 0 2 2 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #70:

score: 0
Accepted
time: 0ms
memory: 4084kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 2 2 2 0
2 1 2 2 0
2 2 1 2 0
2 2 2 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 1 0
1 0 1 0 0
0 1 0 1 0
1 0 1 0 0
0 0 0 0 0

result:

ok 

Test #71:

score: 0
Accepted
time: 0ms
memory: 3876kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 2 2 2 0 0 0 0 0 2
2 1 2 2 0 0 0 0 0 2
2 2 1 2 0 0 0 0 0 2
2 2 2 1 0 0 0 0 0 2
0 0 0 0 1 1 0 1 1 0
0 0 0 0 1 1 0 1 1 0
0 0 0 0 0 0 1 0 0 0
0 0 0 0 1 1 0 1 1 0
0 0 0 0 1 1 0 1 1 0
2 2 2 2 0 0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 0 0 0 1
1 0 1 0 0 0 0 0 0 0
0 1 0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0 0 1
0 0 0 0 0 1 0 1 1 0
0 0 0 0 1 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0
0 0 0 0 1 0 0 0 0 0
1 0 0 1 0 0 0 0 0 0

result:

ok 

Test #72:

score: 0
Accepted
time: 0ms
memory: 3768kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 2 0 0 1 2 0 0 0 0
2 1 0 0 2 2 0 0 0 0
0 0 1 2 0 0 0 2 0 0
0 0 2 1 0 0 0 2 0 0
1 2 0 0 1 2 0 0 0 0
2 2 0 0 2 1 0 0 0 0
0 0 0 0 0 0 1 0 0 0
0 0 2 2 0 0 0 1 0 0
0 0 0 0 0 0 0 0 1 1
0 0 0 0 0 0 0 0 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 1 1 0 0 0 0
1 0 0 0 0 1 0 0 0 0
0 0 0 1 0 0 0 1 0 0
0 0 1 0 0 0 0 1 0 0
1 0 0 0 0 0 0 0 0 0
1 1 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 1 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1
0 0 0 0 0 0 0 0 1 0

result:

ok 

Test #73:

score: 0
Accepted
time: 26ms
memory: 9208kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #74:

score: 0
Accepted
time: 98ms
memory: 26932kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 2 0 0 0 2 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #75:

score: 0
Accepted
time: 94ms
memory: 27112kb

input:

005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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #77:

score: 0
Accepted
time: 92ms
memory: 26844kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Subtask #5:

score: 21
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Test #78:

score: 21
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 0 1 0
0 1 0 0 2
0 0 1 2 2
1 0 2 1 2
0 2 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #79:

score: 0
Accepted
time: 0ms
memory: 3792kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 2 2 2 0 1 0 1 2 2
2 1 2 0 0 1 1 2 2 0
2 2 1 0 2 2 1 2 0 0
2 0 0 1 1 2 1 2 0 0
0 0 2 1 1 0 1 0 0 1
1 1 2 2 0 1 1 2 1 0
0 1 1 1 1 1 1 1 2 2
1 2 2 2 0 2 1 1 0 0
2 2 0 0 0 1 2 0 1 1
2 0 0 0 1 0 2 0 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #80:

score: 0
Accepted
time: 2ms
memory: 4032kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 1 1 2 0 0 1 1 1 2 1 1 0 2 1 2 1 1 2 1 0 0 2 1 2 2 2 0 0 1 2 2 1 1 0 1 2 2 1 2 2 0 0 2 0 2 0 0 0 2 1 0 0 2 0 0 0 2 2 2 0 1 0 1 0 2 0 1 1 1 1 0 1 0 1 1 0 2 2 0 2 0 0 0 1 0 2 1 2 1 0 0 0 0 0 2 1 2 0 1 0 0 0 0 1 1 2 2 0 2 2 0 0 1 2 2 1 0 0 1 1 1 1 0 0 0 0 2 2 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #81:

score: 0
Accepted
time: 42ms
memory: 18916kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 2 1 1 2 1 0 1 1 1 2 0 0 0 0 2 1 1 1 0 1 2 1 0 2 2 1 1 1 2 0 2 0 1 1 1 1 1 2 0 2 1 2 1 0 0 1 0 2 0 2 1 1 1 1 1 1 2 2 2 0 0 1 0 2 1 2 2 0 2 1 0 2 2 2 0 0 1 2 2 1 1 1 2 2 0 1 0 2 0 0 1 2 1 1 2 2 2 0 0 1 0 0 2 2 1 1 1 0 1 1 1 1 2 1 2 1 2 2 0 2 2 1 2 0 1 1 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #82:

score: 0
Accepted
time: 0ms
memory: 4088kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 0 2 2 2
0 1 0 0 0
2 0 1 2 2
2 0 2 1 2
2 0 2 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 1 0 1
0 0 0 0 0
1 0 0 1 0
0 0 1 0 1
1 0 0 1 0

result:

ok 

Test #83:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 1 0 0 0 0 1 0 1 1
1 1 0 0 0 0 1 0 1 1
0 0 1 0 0 0 0 0 0 0
0 0 0 1 2 2 0 2 0 0
0 0 0 2 1 2 0 2 0 0
0 0 0 2 2 1 0 2 0 0
1 1 0 0 0 0 1 0 1 1
0 0 0 2 2 2 0 1 0 0
1 1 0 0 0 0 1 0 1 1
1 1 0 0 0 0 1 0 1 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 1 0 0 0 0 1 0 1 1
1 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 1 0 0 1 0 0
0 0 0 1 0 1 0 0 0 0
0 0 0 0 1 0 0 1 0 0
1 0 0 0 0 0 0 0 0 0
0 0 0 1 0 1 0 0 0 0
1 0 0 0 0 0 0 0 0 0
1 0 0 0 0 0 0 0 0 0

result:

ok 

Test #84:

score: 0
Accepted
time: 0ms
memory: 3736kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 2 0 0 0 2 0 0 0
0 1 0 0 2 0 0 0 0 2
2 0 1 0 0 0 2 0 0 0
0 0 0 1 0 1 0 1 0 0
0 2 0 0 1 0 0 0 0 2
0 0 0 1 0 1 0 1 0 0
2 0 2 0 0 0 1 0 0 0
0 0 0 1 0 1 0 1 0 0
0 0 0 0 0 0 0 0 1 0
0 2 0 0 2 0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 1 0 0 0 1 0 0 0
0 0 0 0 1 0 0 0 0 1
1 0 0 0 0 0 1 0 0 0
0 0 0 0 0 1 0 1 0 0
0 1 0 0 0 0 0 0 0 1
0 0 0 1 0 0 0 0 0 0
1 0 1 0 0 0 0 0 0 0
0 0 0 1 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0
0 1 0 0 1 0 0 0 0 0

result:

ok 

Test #85:

score: 0
Accepted
time: 21ms
memory: 9144kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

result:

ok 

Test #86:

score: 0
Accepted
time: 43ms
memory: 18992kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 2 0 0 0 0 0 0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 2 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #87:

score: 0
Accepted
time: 42ms
memory: 19192kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 2 0 0 0 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 2 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 0 0 0 2 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #88:

score: 0
Accepted
time: 41ms
memory: 18920kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #89:

score: 0
Accepted
time: 33ms
memory: 19064kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Subtask #6:

score: 4
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Dependency #5:

100%
Accepted

Test #90:

score: 4
Accepted
time: 0ms
memory: 3796kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 1 3 3 3
1 1 1 0 2
3 1 1 1 3
3 0 1 1 3
3 2 3 3 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #91:

score: 0
Accepted
time: 0ms
memory: 3744kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 1 1 3 1 0 0 1 2 3
1 1 1 2 3 3 3 2 0 3
1 1 1 1 0 0 1 2 3 3
3 2 1 1 3 3 2 0 2 0
1 3 0 3 1 0 0 2 3 1
0 3 0 3 0 1 0 3 3 2
0 3 1 2 0 0 1 2 1 1
1 2 2 0 2 3 2 1 1 1
2 0 3 2 3 3 1 1 1 0
3 3 3 0 1 2 1 1 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #92:

score: 0
Accepted
time: 2ms
memory: 4376kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
200
1 2 2 3 0 3 1 1 3 1 1 3 2 0 2 0 3 3 0 2 1 1 2 2 2 1 0 3 1 2 2 3 1 3 2 0 3 3 1 3 0 2 3 1 0 2 1 0 3 2 1 2 3 2 2 2 3 0 3 0 1 0 0 1 1 1 1 0 3 1 0 1 0 0 2 1 2 1 2 0 3 2 1 1 1 0 0 1 0 1 0 0 1 0 0 2 0 0 1 2 3 0 1 2 1 3 0 1 0 1 2 3 2 0 2 0 3 0 3 0 1 3 3 3 1 1 3 2 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #93:

score: 0
Accepted
time: 44ms
memory: 18988kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 3 2 1 1 1 3 2 2 0 0 0 0 3 1 0 3 2 2 2 3 3 3 3 2 1 1 1 0 0 3 3 1 3 2 1 2 0 3 0 0 3 0 3 2 3 3 2 2 2 1 3 0 1 3 0 2 1 0 2 2 2 1 0 3 0 3 0 3 0 0 0 1 0 2 2 0 3 2 0 2 0 2 3 2 0 2 0 1 2 2 2 0 2 1 1 0 2 3 2 0 2 0 3 3 1 3 3 2 1 3 0 1 3 1 3 3 0 3 3 1 0 1 1 3 2 0 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #94:

score: 0
Accepted
time: 0ms
memory: 4092kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
5
1 3 2 2 0
3 1 2 2 0
2 2 1 2 0
2 2 2 1 0
0 0 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #95:

score: 0
Accepted
time: 0ms
memory: 4084kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 2 2 0 0 0 2 0
0 1 1 0 0 1 1 0 0 1
0 1 1 3 0 1 1 0 0 1
2 0 3 1 2 0 0 0 2 0
2 0 0 2 1 0 0 0 2 0
0 1 1 0 0 1 1 0 0 1
0 1 1 0 0 1 1 0 0 1
0 0 0 0 0 0 0 1 0 0
2 0 0 2 2 0 0 0 1 0
0 1 1 0 0 1 1 0 0 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #96:

score: 0
Accepted
time: 0ms
memory: 3776kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
10
1 0 0 2 2 0 2 0 0 0
0 1 0 0 0 0 0 0 2 2
0 0 1 0 0 0 0 1 0 0
2 0 0 1 2 0 2 0 0 0
2 0 0 2 1 0 2 0 0 0
0 0 0 0 0 1 0 0 0 3
2 0 0 2 2 0 1 0 0 0
0 0 1 0 0 0 0 1 0 0
0 2 0 0 0 0 0 0 1 2
0 2 0 0 0 3 0 0 2 1

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #97:

score: 0
Accepted
time: 8ms
memory: 7112kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
500
1 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #98:

score: 0
Accepted
time: 38ms
memory: 18992kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 2 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 2 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 2 0 0 2 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #99:

score: 0
Accepted
time: 43ms
memory: 18944kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 2 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 2 0 0 0 0 0 2 0 0 0 0 0 2 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 2 0 0 0 0 0 0 0 0 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #100:

score: 0
Accepted
time: 42ms
memory: 19192kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #101:

score: 0
Accepted
time: 41ms
memory: 18980kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #102:

score: 0
Accepted
time: 42ms
memory: 18916kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #103:

score: 0
Accepted
time: 39ms
memory: 18992kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 2 3 2 3 2 3 3 3 3 3 2 2 3 3 2 2 2 2 3 3 2 3 2 3 2 2 3 3 3 3 3 3 2 3 3 2 2 3 3 2 2 2 3 3 2 3 2 3 3 3 3 2 2 3 3 2 3 2 2 3 2 3 3 3 3 2 2 2 2 2 2 2 3 2 3 2 3 2 3 3 3 2 2 2 2 3 2 3 2 2 2 3 2 3 2 2 3 3 3 3 2 2 3 3 2 2 3 2 2 2 3 3 3 3 3 2 2 3 3 3 2 3 2 2 2 3 2 2 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #104:

score: 0
Accepted
time: 41ms
memory: 18916kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 3 1 1 1 3 1 1 1 1 1 3 1 3 1 3 1 1 1 3 1 1 1 1 3 1 3 3 3 1 3 1 1 1 1 3 3 1 1 1 1 3 1 1 1 3 1 3 3 3 3 1 3 3 1 1 3 3 3 1 3 1 1 3 3 3 1 3 3 3 1 1 3 1 1 3 1 3 3 3 3 1 3 3 1 1 1 3 1 1 1 1 1 1 3 1 3 1 1 3 1 1 1 3 1 3 1 1 1 3 3 3 1 3 1 3 1 3 1 3 1 3 1 1 1 1 1 3 1 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Test #105:

score: 0
Accepted
time: 44ms
memory: 18916kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 0 0 3 0 3 0 0 0 3 3 3 0 0 0 0 3 0 0 0 3 3 0 0 3 0 0 0 0 3 0 3 3 3 0 0 0 0 0 3 0 3 3 0 3 3 0 0 0 0 0 3 3 3 0 3 0 3 3 3 0 3 0 0 3 3 3 0 0 3 3 3 3 3 0 0 0 0 0 3 0 3 3 3 0 0 0 0 3 0 0 3 0 3 3 3 0 3 3 0 3 3 0 0 3 3 0 0 0 3 0 3 3 0 0 3 3 0 0 0 3 0 0 0 0 3 0 3 3 ...

output:

1f0934cc-cf56-429c-b010-8533ab3ded9e
OK
0

result:

ok 

Extra Test:

score: 0
Extra Test Passed