Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

7117
30952
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 0002.5 6056 3400 Accepted 100
1 1 0002.2 6056 3220 Accepted 100
2 1 0002.4 6056 3264 Accepted 100
3 2 5 0008.8 6840 3988 Accepted 100
4 2 5 0008.2 6840 3808 Accepted 100
5 2 5 0008.5 6840 4004 Accepted 100
6 2 5 0008.0 6840 3980 Accepted 100
7 2 5 0007.7 6876 4268 Accepted 100
8 2 5 0007.9 6876 4212 Accepted 100
9 2 5 0007.4 6876 4148 Accepted 100
10 2 5 0008.0 6780 4064 Accepted 100
11 2 5 0008.9 6708 3992 Accepted 100
12 2 5 0008.2 6784 3976 Accepted 100
13 2 5 0008.1 6740 3872 Accepted 100
14 3 5 0116.5 22780 16800 Accepted 100
15 3 5 0117.5 22780 17060 Accepted 100
16 3 5 0114.1 22780 17020 Accepted 100
17 3 5 0116.8 22780 17028 Accepted 100
18 3 5 0111.8 22776 16908 Accepted 100
19 3 5 0113.3 22780 17052 Accepted 100
20 3 5 0110.8 22776 17048 Accepted 100
21 3 5 0113.7 22776 16748 Accepted 100
22 4 5 0125.1 25992 22220 Accepted 100
23 4 5 0124.7 25988 22280 Accepted 100
24 4 5 0124.2 25988 22052 Accepted 100
25 4 5 0123.3 25992 22044 Accepted 100
26 4 5 0120.3 25992 22016 Accepted 100
27 4 5 0122.3 25988 22184 Accepted 100
28 4 5 0119.9 25992 22252 Accepted 100
29 4 5 0119.7 25988 22012 Accepted 100
30 4 5 0097.0 25988 22104 Accepted 100
31 4 5 0093.6 25992 22244 Accepted 100
32 4 5 0093.2 25992 22188 Accepted 100
33 5 0150.3 22780 17260 Accepted 100
34 5 0154.5 22780 17148 Accepted 100
35 5 0153.3 22780 17048 Accepted 100
36 5 0149.0 22780 17084 Accepted 100
37 5 0153.4 22776 17028 Accepted 100
38 5 0156.1 22864 17396 Accepted 100
39 5 0150.9 22780 16940 Accepted 100
40 5 0152.2 22776 16940 Accepted 100
41 5 0143.6 22776 16832 Accepted 100
42 5 0149.3 22776 17180 Accepted 100
43 5 0168.7 23172 17824 Accepted 100
44 5 0148.5 22776 17184 Accepted 100
45 5 0148.6 22776 16924 Accepted 100
46 5 0144.8 22780 17056 Accepted 100
47 5 0146.4 22776 17008 Accepted 100
48 5 0150.6 21924 17060 Accepted 100
49 5 0149.6 20692 16068 Accepted 100
50 5 0151.6 20576 15836 Accepted 100
51 5 0152.8 20688 15568 Accepted 100
52 5 0155.4 20404 15396 Accepted 100
53 5 0159.6 20376 15336 Accepted 100
54 5 0155.8 20164 15228 Accepted 100
55 5 0150.8 21316 16936 Accepted 100
56 5 0150.7 21316 16772 Accepted 100
57 5 0159.7 22156 16808 Accepted 100
58 5 0157.6 22152 16796 Accepted 100
59 5 0155.4 20464 15960 Accepted 100
60 5 0155.6 20460 15832 Accepted 100
61 5 0169.8 37660 30772 Accepted 100
62 5 0170.0 37660 30952 Accepted 100
63 5 0115.0 28036 22920 Accepted 100
64 5 0112.8 28040 23112 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
7.53 KB
Back to Top