Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

9220
24340
Accepted
100

Subtask Results

Subtask no. Testdata Range Constraints Score
1 0~2 範例測資。 0 / 0
2 3~13 N, Q <= 5000 7 / 7
3 14~21 ans > 0, tree generated randomly 12 / 12
4 22~32 tree is a chain 22 / 22
5 3~64 N, Q <= 10^ 5 59 / 59

Testdata Results

Testdata no. Subtasks Time (ms) Memory (VSS, KiB) Memory (RSS, KiB) Verdict Score
0 1 0003.4 6056 3232 Accepted 100
1 1 0003.0 6056 3224 Accepted 100
2 1 0002.4 6056 3260 Accepted 100
3 2 5 0010.7 6800 3860 Accepted 100
4 2 5 0010.5 6800 3916 Accepted 100
5 2 5 0011.9 6800 3964 Accepted 100
6 2 5 0008.4 6800 4076 Accepted 100
7 2 5 0011.2 7008 4308 Accepted 100
8 2 5 0010.9 7012 4240 Accepted 100
9 2 5 0010.5 7012 4292 Accepted 100
10 2 5 0009.4 6776 4056 Accepted 100
11 2 5 0010.7 6692 3972 Accepted 100
12 2 5 0009.4 6776 4004 Accepted 100
13 2 5 0009.0 6696 4084 Accepted 100
14 3 5 0120.1 21516 17008 Accepted 100
15 3 5 0122.4 21516 17204 Accepted 100
16 3 5 0119.5 21516 17100 Accepted 100
17 3 5 0119.2 21516 17024 Accepted 100
18 3 5 0114.3 21516 17128 Accepted 100
19 3 5 0111.1 21516 17124 Accepted 100
20 3 5 0109.6 21520 17132 Accepted 100
21 3 5 0115.5 21516 17188 Accepted 100
22 4 5 0237.6 27400 24232 Accepted 100
23 4 5 0241.1 27396 24096 Accepted 100
24 4 5 0233.5 27400 24320 Accepted 100
25 4 5 0238.0 27396 24156 Accepted 100
26 4 5 0233.5 27396 24320 Accepted 100
27 4 5 0229.9 27396 24336 Accepted 100
28 4 5 0231.2 27400 24080 Accepted 100
29 4 5 0232.9 27400 24108 Accepted 100
30 4 5 0132.5 27396 24224 Accepted 100
31 4 5 0121.8 27400 24296 Accepted 100
32 4 5 0122.7 27400 24340 Accepted 100
33 5 0208.3 21516 17136 Accepted 100
34 5 0206.7 21516 17108 Accepted 100
35 5 0199.1 21516 16988 Accepted 100
36 5 0201.6 21516 17172 Accepted 100
37 5 0197.4 21516 17136 Accepted 100
38 5 0207.5 21512 17088 Accepted 100
39 5 0200.0 21520 17216 Accepted 100
40 5 0194.4 21516 17036 Accepted 100
41 5 0199.4 21516 17128 Accepted 100
42 5 0198.7 21516 17176 Accepted 100
43 5 0214.6 21512 17172 Accepted 100
44 5 0193.2 21516 17192 Accepted 100
45 5 0194.9 21516 17096 Accepted 100
46 5 0159.1 21516 17036 Accepted 100
47 5 0150.3 21520 17108 Accepted 100
48 5 0190.7 21144 17780 Accepted 100
49 5 0192.5 20368 17192 Accepted 100
50 5 0189.1 19896 16832 Accepted 100
51 5 0192.4 19588 16156 Accepted 100
52 5 0193.0 19360 16304 Accepted 100
53 5 0198.7 19196 16152 Accepted 100
54 5 0198.6 19060 15980 Accepted 100
55 5 0190.0 20368 16920 Accepted 100
56 5 0189.8 20364 16988 Accepted 100
57 5 0199.2 19904 16768 Accepted 100
58 5 0196.6 19900 16848 Accepted 100
59 5 0196.2 19584 16568 Accepted 100
60 5 0196.1 19584 16624 Accepted 100
61 5 0098.4 24744 19080 Accepted 100
62 5 0098.6 24744 19176 Accepted 100
63 5 0124.0 25280 21304 Accepted 100
64 5 0143.1 25280 21312 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
7.24 KB
Back to Top