QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#539619#8939. Permutationucup-team4708#WA 20ms3944kbC++20851b2024-08-31 15:16:072024-08-31 15:16:08

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

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

result:

ok Correct (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 20ms
memory: 3944kb

input:

10000
10
2
1
2
2
3
10
10
10
10
8

output:

? 1 10
? 1 2
? 2 6
? 2 4
? 2 3
! 4
? 1 10
? 2 10
? 6 10
? 8 10
? 7 10

result:

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