QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#883076#9734. Identify ChordHuluoboRE 0ms3968kbC++143.9kb2025-02-05 14:38:402025-02-05 14:38:41

详细

Test #1:

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

input:

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

output:

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

result:

ok ok (2 test cases)

Test #2:

score: -100
Runtime Error

input:

1000
15
7
6
6
4
6
5
4
1
19
8
8
5
5
4
1
1
17
4
5
4
3
2
1
1
15
7
7
6
5
3
1
1

output:

? 7 15
? 1 9
? 1 10
? 1 5
? 1 7
? 1 8
? 12 8
! 5 8
? 6 16
? 6 17
? 6 11
? 6 13
? 6 12
? 3 12
! 3 12
? 4 13
? 4 14
? 4 8
? 4 10
? 4 11
? 3 11
! 3 11
? 2 10
? 3 10
? 3 11
? 3 12
? 3 14
? 3 1
? 3 2
? 3 16

result: