QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#757836#8239. Mysterious TreeZhangYiDeWA 1ms3616kbC++203.4kb2024-11-17 13:54:322024-11-17 13:54:32

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
4
0
0
4
1
0
1

output:

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

result:

ok Correct (2 test cases)

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3592kb

input:

87
13
0
0
0
0
0
1
0
1
15
0
0
0
0
0
1
0
1
7
0
0
0
1
0
1
15
0
0
0
0
0
0
1
0
0
19
0
1
0
1
20
0
1
0
0
7
0
0
1
0
1
20
0
0
0
0
1
0
1
17
0
0
0
0
0
0
1
0
0
11
0
0
0
0
0
0
14
0
1
0
0
13
0
0
1
0
0
18
0
0
1
0
1
14
0
0
0
1
1
1
20
0
0
0
0
0
0
0
0
0
0
11
0
0
0
0
0
0
11
1
0
0
8
0
0
1
1
1
7
1
1
0
9
0
1
0
0
7
0
0
0
...

output:

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

result:

wrong answer Wrong prediction (test case 31)