QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#637710#8239. Mysterious Treeucup-team4949#TL 1ms4012kbC++141.3kb2024-10-13 13:53:192024-10-13 13:53:19

详细

Test #1:

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

input:

2
4
1
0
0
4
1
1
0
1

output:

? 4 3
? 4 2
? 3 1
! 1
? 3 2
? 3 1
? 2 4
? 3 4
! 2

result:

ok Correct (2 test cases)

Test #2:

score: -100
Time Limit Exceeded

input:

87
13
0
0
0
0
0
1
1
0
1
15
0
0
0
1
0
1
1
7
1
1
0
1
15
0
0
0
0
0
0
0
0
0
1
0
19
0
0
1
0
1
1
20
0
0
0
0
0
0
0
0
0
0
1
0
7
0
0
0
0
0
1
0

output:

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

result: