QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#748653#8939. Permutationucup-team3862#RE 1ms4204kbC++202.5kb2024-11-14 20:59:122024-11-14 20:59:12

詳細信息

Test #1:

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

input:

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

output:

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

result:

ok Correct (3 test cases)

Test #2:

score: -100
Runtime Error

input:

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

output:

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

result: