QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#619522#8239. Mysterious TreeZhangYiDeTL 1ms3652kbC++233.0kb2024-10-07 14:32:442024-10-07 14:32:50

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
4
0
1
1
0
4
0
1
0
1
1

output:

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

result:

ok Correct (2 test cases)

Test #2:

score: -100
Time Limit Exceeded

input:

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

output:

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

result: