QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#795677#8939. Permutationucup-team4538#RE 1ms3712kbC++231.3kb2024-11-30 23:00:362024-11-30 23:00:37

詳細信息

Test #1:

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

input:

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

output:

? 1 5
? 2 5
? 2 4
? 3 4
! 4
? 1 6
? 3 6
? 1 2
! 2
? 1 4
? 2 4
? 3 4
! 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
5
5
4
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
? 3 7
? 4 7
? 4 6
! 7
? 1 10
? 1 7
? 3 7
? 3 6
? 3 5

result: