QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#542834#8939. Permutationucup-team018#RE 0ms3636kbC++201.1kb2024-09-01 06:20:022024-09-01 06:20:04

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3636kb

input:

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

output:

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

result:

ok Correct (3 test cases)

Test #2:

score: -100
Runtime Error

input:

10000
10
2
2
2
3
5
10
10
10
10
8
7
10
5
5
1
6
6
10
4
4
4
4
4
10
10
6
3
3
2
10

output:

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

result: