QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#540834#8939. Permutationucup-team4269#WA 76ms3596kbC++202.0kb2024-08-31 17:56:362024-08-31 17:58:10

詳細信息

Test #1:

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

input:

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

output:

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

result:

ok Correct (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 76ms
memory: 3540kb

input:

10000
10
2
2
2
2
3
10
10
10
10

output:

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

result:

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