QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505533#5937. Full Binary Treexiaowuc130 ✓1313ms4024kbC++172.4kb2024-08-05 05:57:452024-08-05 05:57:47

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 9
Accepted

Test #1:

score: 9
Accepted
time: 1ms
memory: 3492kb

input:

100
15
1 3
2 10
2 12
3 10
4 5
5 6
5 8
5 14
6 7
9 14
10 14
11 12
12 13
13 15
15
1 3
2 3
2 4
2 7
2 8
4 14
5 6
5 7
5 11
5 13
6 9
10 11
11 12
13 15
12
1 4
2 5
3 12
4 10
5 6
5 7
7 12
8 9
8 11
8 12
9 10
15
1 8
2 12
2 13
3 10
4 8
4 14
5 9
5 12
5 15
6 12
7 10
7 11
7 15
8 10
15
1 3
1 14
2 14
3 15
4 6
4 8
4 1...

output:

Case #1: 4
Case #2: 6
Case #3: 3
Case #4: 2
Case #5: 6
Case #6: 6
Case #7: 8
Case #8: 8
Case #9: 4
Case #10: 4
Case #11: 6
Case #12: 0
Case #13: 6
Case #14: 8
Case #15: 6
Case #16: 6
Case #17: 10
Case #18: 6
Case #19: 8
Case #20: 6
Case #21: 6
Case #22: 8
Case #23: 2
Case #24: 7
Case #25: 6
Case #26...

result:

ok 100 lines

Subtask #2:

score: 21
Accepted

Test #2:

score: 21
Accepted
time: 1313ms
memory: 4024kb

input:

100
18
1 5
1 10
1 16
2 17
3 4
3 18
4 12
4 14
6 16
7 14
8 11
8 16
9 11
12 17
13 14
13 16
15 18
29
1 15
1 16
2 12
3 11
3 21
4 6
4 28
5 27
6 8
7 17
8 25
9 19
10 15
10 20
10 26
12 20
12 23
13 28
14 23
16 22
17 20
18 19
18 28
21 28
21 29
22 27
22 28
24 27
1000
1 254
1 403
2 97
2 891
3 282
3 807
4 529
5 5...

output:

Case #1: 7
Case #2: 18
Case #3: 971
Case #4: 20
Case #5: 969
Case #6: 12
Case #7: 1
Case #8: 963
Case #9: 3
Case #10: 4
Case #11: 953
Case #12: 925
Case #13: 943
Case #14: 951
Case #15: 953
Case #16: 943
Case #17: 20
Case #18: 0
Case #19: 961
Case #20: 21
Case #21: 27
Case #22: 17
Case #23: 5
Case #...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed