QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#540002#8939. Permutationucup-team4701#TL 1ms3560kbC++14784b2024-08-31 16:13:262024-08-31 16:13:28

詳細信息

Test #1:

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

input:

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

output:

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

result:

ok Correct (3 test cases)

Test #2:

score: -100
Time Limit Exceeded

input:

10000
10
2
1
3
7

output:

? 1 10
? 1 2
? 3 10
? 4 10
? 4 7

result: