QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#757852#8239. Mysterious TreeMaMengQiWA 1ms3620kbC++203.5kb2024-11-17 13:59:412024-11-17 13:59:42

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
4
0
0
4
1
0
1
1

output:

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

result:

ok Correct (2 test cases)

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 3620kb

input:

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

output:

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

result:

wrong answer Integer 11 violates the range [1, 7] (test case 7)