QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#283731#6550. Elimination RaceHuangHanShengWA 1ms5980kbC++202.8kb2023-12-15 11:59:112023-12-15 11:59:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

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

input:

2
1 2

output:

YES
1 
NO

result:

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

Test #4:

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

input:

2
2 1

output:

NO
YES
1 

result:

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

Test #5:

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

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
1 2 3 4 5 6 10 8 9 6 
NO
NO
NO
NO
NO
NO
YES
5 2 3 4 6 7 8 9 10 1 
YES
1 2 3 4 5 6 7 8 9 10 
YES
4 2 3 5 6 10 8 9 1 8 
NO

result:

wrong output format Answer must be a permutation