QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#103543#2833. HamiltonMaMengQiWA 2ms3500kbC++203.3kb2023-05-06 16:23:212023-05-06 16:23:22

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3420kb

input:

3
001
000
100
4
0000
0000
0000
0000

output:

1 2 3
1 2 3 4

result:

ok 2 cases.

Test #2:

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

input:

3
000
000
000
3
010
100
000
3
011
100
100
3
011
101
110

output:

1 2 3
1 2 3
2 3 1
1 2 3

result:

ok 4 cases.

Test #3:

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

input:

4
0000
0000
0000
0000
4
0000
0001
0000
0100
4
0100
1010
0100
0000
4
0111
1000
1000
1000
4
0010
0011
1101
0110
4
0111
1011
1100
1100
4
0111
1011
1101
1110
4
0000
0011
0101
0110
4
0101
1010
0100
1000
4
0011
0011
1100
1100
4
0010
0001
1000
0100

output:

1 2 3 4
1 2 3 4
1 2 3 4
3 2 4 1
1 4 2 3
1 4 2 3
1 2 3 4
3 2 4 1
3 4 1 2
1 4 2 3
1 2 3 4

result:

ok 11 cases.

Test #4:

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

input:

5
00000
00000
00000
00000
00000
5
00001
00000
00000
00000
10000
5
00010
00010
00000
11000
00000
5
00000
00001
00001
00001
01110
5
00001
00001
00001
00001
11110
5
00101
00100
11011
00100
10100
5
01111
10011
10000
11000
11000
5
00011
00011
00011
11101
11110
5
01101
10111
11001
01001
11110
5
00111
0011...

output:

1 2 3 4 5
1 2 3 4 5
1 2 3 4 5
3 4 1 2 5
1 2 3 4 5
4 3 1 5 2
4 3 1 5 2
1 2 3 4 5
1 3 2 4 5
1 2 3 4 5
1 2 3 4 5
4 3 1 5 2
3 4 1 2 5
3 4 1 2 5
3 4 1 2 5
4 5 1 2 3
1 2 3 4 5
3 4 1 2 5
4 3 1 2 5
1 2 3 4 5
1 2 3 4 5
4 3 1 2 5
1 3 2 4 5
1 3 2 4 5
3 4 1 2 5
1 3 2 4 5
4 3 1 5 2
1 2 3 4 5
4 5 1 2 3
4 5 1 2 3
...

result:

ok 34 cases.

Test #5:

score: -100
Wrong Answer
time: 2ms
memory: 3432kb

input:

6
000000
000000
000000
000000
000000
000000
6
000000
000000
000001
000000
000000
001000
6
010000
100100
000000
010000
000000
000000
6
000100
000000
000100
101010
000100
000000
6
000100
000000
000100
101011
000100
000100
6
001000
001000
110111
001000
001000
001000
6
001100
000100
100100
111011
000100...

output:

1 6 3 4 5 2
4 3 2 5 1 6
1 6 3 4 5 2
5 2 3 6 1 4
5 2 3 6 1 4
5 2 1 4 6 3
5 2 3 6 1 4
5 2 1 4 6 3
6 4 5 2 1 3
4 3 2 5 1 6
4 3 2 5 1 6
1 6 3 4 5 2
5 2 3 6 1 4
4 3 2 5 1 6
1 6 3 4 5 2
1 6 3 4 5 2
1 6 3 4 5 2
5 2 3 6 1 4
1 6 3 4 5 2
4 3 2 5 1 6
4 3 1 5 2 6
5 2 3 6 1 4
5 2 3 6 1 4
4 3 2 5 1 6
5 2 1 4 6 3
...

result:

wrong answer case #33: found 3 indices