QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#111151#1135. Connecting SupertreesZhaoZiLong100 ✓183ms23020kbC++171.9kb2023-06-06 03:58:182023-06-06 03:58:21

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 11
Accepted

Test #1:

score: 11
Accepted
time: 0ms
memory: 3648kb

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: 3712kb

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: 3712kb

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: 3840kb

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: 2ms
memory: 3716kb

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: 6ms
memory: 4344kb

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: 141ms
memory: 22904kb

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: 1ms
memory: 3708kb

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: 3672kb

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: 2ms
memory: 3708kb

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: 2ms
memory: 3836kb

input:

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

result:

ok 

Test #13:

score: 0
Accepted
time: 145ms
memory: 22852kb

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: 2ms
memory: 3832kb

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: 2ms
memory: 3740kb

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: 5ms
memory: 4172kb

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: 49ms
memory: 14936kb

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: 2ms
memory: 3680kb

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: 2ms
memory: 3796kb

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: 26ms
memory: 8064kb

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: 159ms
memory: 22832kb

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: 153ms
memory: 22844kb

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: 152ms
memory: 22836kb

input:

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

result:

ok 

Test #25:

score: 0
Accepted
time: 59ms
memory: 15668kb

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: 67ms
memory: 15484kb

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: 148ms
memory: 22980kb

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

result:

ok 

Subtask #3:

score: 19
Accepted

Test #29:

score: 19
Accepted
time: 2ms
memory: 3704kb

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: 2ms
memory: 3676kb

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: 2ms
memory: 3692kb

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: 2ms
memory: 3740kb

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: 2ms
memory: 3712kb

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: 2ms
memory: 3716kb

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: 2ms
memory: 3748kb

input:

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

result:

ok 

Test #37:

score: 0
Accepted
time: 151ms
memory: 22968kb

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: 2ms
memory: 3696kb

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: 2ms
memory: 3688kb

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: 9ms
memory: 4344kb

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: 151ms
memory: 23020kb

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: 2ms
memory: 3716kb

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: 3716kb

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: 5ms
memory: 4260kb

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: 71ms
memory: 15504kb

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: 2ms
memory: 3744kb

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: 2ms
memory: 3720kb

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: 2ms
memory: 3708kb

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: 35ms
memory: 8184kb

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: 147ms
memory: 23000kb

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

result:

ok 

Test #52:

score: 0
Accepted
time: 137ms
memory: 22848kb

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: 69ms
memory: 15552kb

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: 71ms
memory: 15568kb

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: 142ms
memory: 22848kb

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: 145ms
memory: 22980kb

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: 76ms
memory: 15556kb

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: 2ms
memory: 3720kb

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: 2ms
memory: 3712kb

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: 2ms
memory: 3808kb

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: 49ms
memory: 8064kb

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: 146ms
memory: 22848kb

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: 161ms
memory: 22984kb

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: 165ms
memory: 22848kb

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: 3708kb

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: 30ms
memory: 8064kb

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: 154ms
memory: 22824kb

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: 129ms
memory: 22844kb

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: 158ms
memory: 22852kb

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: 2ms
memory: 3808kb

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: 2ms
memory: 3704kb

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: 1ms
memory: 3700kb

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: 39ms
memory: 8204kb

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: 143ms
memory: 22832kb

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: 145ms
memory: 22856kb

input:

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

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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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 #76:

score: 0
Accepted
time: 183ms
memory: 22892kb

input:

005602cc-10e6-44fc-b5bf-57ff77778fe1
1000
1 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 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 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 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: 145ms
memory: 22980kb

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: 2ms
memory: 3676kb

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: 2ms
memory: 3832kb

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: 5ms
memory: 4260kb

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: 66ms
memory: 14932kb

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: 3680kb

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: 3772kb

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: 3720kb

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: 40ms
memory: 8072kb

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: 59ms
memory: 15572kb

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: 65ms
memory: 15552kb

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: 55ms
memory: 15540kb

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: 60ms
memory: 15676kb

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: 3648kb

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: 3836kb

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: 5ms
memory: 3984kb

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: 62ms
memory: 11116kb

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: 2ms
memory: 3764kb

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: 2ms
memory: 3656kb

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: 3804kb

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: 11ms
memory: 5312kb

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: 54ms
memory: 11364kb

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: 58ms
memory: 11948kb

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: 45ms
memory: 11312kb

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: 64ms
memory: 12272kb

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: 58ms
memory: 11016kb

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: 64ms
memory: 11136kb

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: 70ms
memory: 10972kb

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: 70ms
memory: 11124kb

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