QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#614073#8939. PermutationZhangYiDeWA 46ms3952kbC++20872b2024-10-05 15:32:402024-10-05 15:32:40

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
5
3
3
3
3
6
6
6
3
4
3
3
3

output:

? 1 5
? 2 5
? 2 4
? 3 4
! 4
? 1 6
? 2 6
? 3 6
! 2
? 1 4
? 2 4
? 3 4
! 4

result:

ok Correct (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 46ms
memory: 3952kb

input:

10000
10
2
2
3
5
10
10
10
10

output:

? 1 10
? 1 5
? 1 3
? 4 5
! 4
? 1 10
? 3 10
? 4 10
? 5 10

result:

wrong answer Too long queries, n = 10, now length 31 (test case 2)