QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#59943#1845. PermuteZhangYiDeWA 141ms3676kbC++174.1kb2022-11-02 10:00:532022-11-02 10:00:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
0 1 0 0 1 0 0 0 0 0
0 2 0 0 0 0 1 0 0 1
0 1000000000 0 0 0 0 0 0 0 0

output:

2
1 1
1 4
4
1 9
1 6
1 1
1 1
-1

result:

ok T=3

Test #2:

score: -100
Wrong Answer
time: 141ms
memory: 3636kb

input:

100000
0 0 0 1 0 1 1 1 0 1
1 1 0 0 1 0 1 0 1 0
1 1 1 1 0 0 0 1 0 1
0 1 1 0 0 1 1 1 1 0
0 0 1 0 1 0 1 0 1 0
0 1 0 0 0 0 0 1 0 0
1 1 0 0 0 0 0 0 1 1
1 0 1 1 1 0 1 0 0 0
0 1 1 0 0 1 0 1 0 1
1 0 0 1 1 0 0 1 0 0
1 1 0 1 0 0 1 0 1 1
0 0 1 0 0 0 0 1 0 0
0 1 1 1 1 1 1 1 0 1
1 0 0 0 0 1 0 0 0 1
0 0 0 0 1 0 1...

output:

5
1 9
1 6
1 5
1 3
1 7
5
1 8
1 1
1 0
1 4
1 6
6
1 9
1 7
1 0
1 1
1 2
1 3
6
1 8
1 7
1 5
1 1
1 2
1 6
4
1 8
1 2
1 4
1 6
-1
4
1 0
1 1
1 8
1 9
5
1 6
1 2
1 0
1 3
1 4
5
1 9
1 7
1 1
1 2
1 5
4
1 7
1 1
1 2
1 5
6
1 9
1 8
1 1
1 0
1 3
1 6
-1
8
1 9
1 7
1 6
1 5
1 4
1 1
1 2
1 3
-1
4
1 6
1 4
1 8
1 9
7
1 9
1 8
1 7
1 5
1...

result:

wrong answer Participant output c[i]!=input c[i] in test 10