QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#220645#6550. Elimination Raceucup-team518WA 1ms3688kbC++171.0kb2023-10-20 16:56:012023-10-20 16:56:01

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3532kb

input:

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

output:

YES
1 2 3 
NO
NO
NO

result:

ok n=4, yes=1, no=3

Test #2:

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

input:

3
2 1 3
2 1 3

output:

NO
YES
1 2 
NO

result:

ok n=3, yes=1, no=2

Test #3:

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

input:

2
1 2

output:

YES
1 
NO

result:

ok n=2, yes=1, no=1

Test #4:

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

input:

2
2 1

output:

NO
YES
1 

result:

ok n=2, yes=1, no=1

Test #5:

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

input:

11
4 3 6 1 11 10 5 7 8 9 2
11 6 5 1 10 3 8 2 7 9 4
5 9 2 11 3 4 1 10 8 6 7
9 11 8 3 5 4 1 6 7 10 2
3 9 7 6 5 10 1 4 11 8 2
8 2 4 1 5 9 3 7 6 10 11
3 8 2 9 1 4 5 10 11 6 7
10 11 4 1 7 5 2 6 8 9 3
10 6 9 3 2 1 4 8 11 7 5
8 11 9 1 4 10 2 5 3 7 6

output:

YES
6 7 5 9 1 3 4 10 8 2 
NO
NO
NO
NO
NO
NO
YES
5 3 1 8 9 2 4 7 10 6 
YES
1 8 2 6 7 9 10 5 3 4 
YES
6 4 7 3 1 10 5 2 8 9 
NO

result:

ok n=11, yes=4, no=7

Test #6:

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

input:

11
6 7 8 9 3 4 1 11 5 10 2
7 10 6 3 1 2 5 11 4 9 8
4 3 9 1 10 2 5 7 6 8 11
10 4 2 11 8 1 5 7 9 6 3
11 9 4 6 8 2 1 7 3 5 10
9 10 2 7 4 11 6 1 3 8 5
11 8 4 9 7 1 2 10 5 3 6
5 7 9 10 1 8 4 2 6 11 3
4 2 9 7 10 1 6 8 3 5 11
2 7 6 10 5 11 1 8 4 9 3

output:

YES
6 5 9 1 7 2 4 3 10 8 
NO
NO
YES
3 9 8 1 2 10 6 4 5 7 
NO
NO
YES
5 1 7 3 9 10 8 2 6 4 
NO
YES
2 10 4 1 7 3 9 8 5 6 
NO
NO

result:

ok n=11, yes=4, no=7

Test #7:

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

input:

11
3 5 9 7 4 1 8 11 10 2 6
9 7 10 4 8 3 1 6 5 2 11
9 5 11 3 8 7 1 6 2 4 10
8 9 11 1 4 3 10 6 7 2 5
11 3 7 8 5 9 1 2 10 6 4
8 3 10 11 1 4 2 5 6 7 9
5 9 10 2 4 3 7 1 11 6 8
11 8 10 3 5 7 4 1 2 6 9
7 8 1 9 10 5 3 11 2 6 4
2 4 6 9 5 11 7 1 8 10 3

output:

YES
3 10 5 1 4 9 8 6 7 2 
NO
NO
NO
NO
NO
YES
2 7 1 9 10 6 3 4 5 8 
NO
NO
NO
NO

result:

ok n=11, yes=2, no=9

Test #8:

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

input:

11
3 5 9 2 11 1 4 8 6 10 7
8 3 4 9 1 5 6 2 7 10 11
10 6 4 7 11 9 1 3 5 8 2
9 3 2 7 8 4 5 10 1 11 6
3 4 9 10 1 8 2 7 6 11 5
9 4 7 8 1 11 6 3 5 2 10
5 11 4 10 6 3 2 1 9 8 7
10 11 8 5 2 1 9 7 4 6 3
6 3 8 9 4 11 1 2 10 7 5
8 3 11 10 9 1 6 5 7 2 4

output:

YES
2 4 5 6 9 1 3 10 7 8 
NO
NO
NO
NO
NO
NO
YES
7 3 1 5 4 6 9 8 10 2 
YES
6 2 1 9 4 7 10 5 8 3 
NO
NO

result:

ok n=11, yes=3, no=8

Test #9:

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

input:

11
3 5 7 10 9 6 2 1 11 8 4
3 6 1 7 5 11 4 10 9 8 2
10 4 6 7 11 3 1 2 9 5 8
10 4 1 9 11 5 3 8 6 7 2
11 5 9 1 10 4 8 6 7 2 3
3 2 7 9 11 10 1 5 8 4 6
4 5 11 8 6 7 10 1 2 3 9
2 7 3 11 8 1 9 6 4 10 5
4 8 2 7 5 10 6 1 11 3 9
9 6 3 5 1 10 11 7 8 4 2

output:

YES
7 9 3 2 8 1 6 4 5 10 
NO
NO
NO
NO
NO
YES
4 5 10 7 9 3 2 6 1 8 
NO
NO
YES
8 2 7 9 6 10 5 1 3 4 
YES
9 1 10 2 6 3 4 8 7 5 

result:

ok n=11, yes=4, no=7

Test #10:

score: -100
Wrong Answer
time: 1ms
memory: 3620kb

input:

11
6 5 11 2 8 9 7 10 1 4 3
11 4 3 6 10 7 9 1 8 5 2
3 2 6 8 5 7 9 1 10 4 11
11 6 9 1 3 10 4 2 7 8 5
5 6 8 7 11 9 1 3 4 2 10
6 5 3 9 2 1 10 11 8 4 7
9 3 4 6 2 1 5 7 8 10 11
11 6 9 8 1 4 3 2 5 10 7
6 4 7 11 3 2 1 5 8 10 9
10 3 8 6 4 1 11 7 9 2 5

output:

NO
NO
NO
YES
1 6 3 5 4 8 10 7 9 2 
NO
YES
7 3 6 10 5 9 1 8 4 2 
NO
NO
NO
NO
NO

result:

wrong answer Jury has the answer but participant has not