QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#77512#3569. Foul PlayMario AC ✓64ms2716kbC++204.1kb2023-02-14 23:59:212023-02-14 23:59:22

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 64ms
memory: 2716kb

input:

4
0110
0011
0000
1010
8
00111010
10101111
00010010
01000101
00110010
10101011
00010000
10101010
2
01
00
4
0101
0000
1100
0110
4
0011
1000
0100
0110
4
0111
0000
0100
0110
4
0101
0010
1000
0110
4
0011
1010
0000
0110
4
0111
0010
0000
0110
4
0110
0001
0100
1010
4
0101
0001
1100
0010
4
0011
1001
0100
001...

output:

2 4
1 3
1 2
4 2
6 8
1 3
7 5
4 6
1 5
1 4
1 2
4 3
1 2
1 4
3 2
1 4
1 3
1 2
4 3
1 4
2 3
1 4
1 2
4 2
1 3
1 4
1 2
4 3
1 4
2 4
1 3
1 2
4 3
1 2
1 4
3 2
1 4
1 3
1 2
4 3
1 4
2 4
1 3
1 2
2 3
1 4
1 2
1 2
4 3
1 4
3 4
1 2
1 3
3 2
1 4
1 3
1 2
4 3
1 3
3 4
1 2
1 3
2 3
1 4
1 2
4 2
1 3
1 4
1 2
4 3
1 3
2 4
1 3
1 2
3 2
...

result:

ok correct