QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#416426#1464. Interactive AlgorithmZhaoZiLongWA 40ms3796kbC++201.1kb2024-05-21 20:31:152024-05-21 20:31:15

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 33ms
memory: 3796kb

input:

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

output:

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

result:

ok n=5, 25000 queries

Test #2:

score: 0
Accepted
time: 9ms
memory: 3708kb

input:

2
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1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 3 
? 2 1 3 
? 1 3 2 
? 2 3 1 
? 1 2 3 
? 2 1 3 
? 3...

result:

wrong output format Unexpected end of file - int32 expected