Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

6870
30740
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 6052 3220 Accepted 100
1 1 0002.3 6052 3256 Accepted 100
2 1 0002.3 6052 3224 Accepted 100
3 2 5 0008.5 6836 3764 Accepted 100
4 2 5 0008.1 6836 3792 Accepted 100
5 2 5 0008.4 6836 4008 Accepted 100
6 2 5 0007.8 6836 3828 Accepted 100
7 2 5 0007.6 6872 4112 Accepted 100
8 2 5 0007.6 6868 4268 Accepted 100
9 2 5 0007.4 6876 4276 Accepted 100
10 2 5 0007.6 6768 4040 Accepted 100
11 2 5 0008.4 6696 3892 Accepted 100
12 2 5 0007.9 6772 4024 Accepted 100
13 2 5 0007.8 6736 3952 Accepted 100
14 3 5 0110.5 22776 16940 Accepted 100
15 3 5 0112.6 22776 16976 Accepted 100
16 3 5 0111.5 22776 16876 Accepted 100
17 3 5 0114.8 22776 16976 Accepted 100
18 3 5 0111.9 22772 17080 Accepted 100
19 3 5 0114.5 22776 17052 Accepted 100
20 3 5 0106.7 22772 16920 Accepted 100
21 3 5 0110.5 22772 17032 Accepted 100
22 4 5 0123.4 25924 21800 Accepted 100
23 4 5 0124.9 25924 22032 Accepted 100
24 4 5 0123.8 25924 22000 Accepted 100
25 4 5 0124.8 25924 21900 Accepted 100
26 4 5 0120.2 25924 21924 Accepted 100
27 4 5 0119.0 25924 21748 Accepted 100
28 4 5 0118.7 25920 21772 Accepted 100
29 4 5 0118.7 25924 21952 Accepted 100
30 4 5 0095.6 25920 21920 Accepted 100
31 4 5 0092.5 25928 22036 Accepted 100
32 4 5 0092.5 25920 21916 Accepted 100
33 5 0149.3 22776 17032 Accepted 100
34 5 0158.7 22776 16972 Accepted 100
35 5 0149.9 22776 16876 Accepted 100
36 5 0147.8 22776 17056 Accepted 100
37 5 0151.1 22772 16964 Accepted 100
38 5 0156.3 22772 17272 Accepted 100
39 5 0151.8 22776 17056 Accepted 100
40 5 0150.7 22772 16972 Accepted 100
41 5 0149.2 22772 17032 Accepted 100
42 5 0145.7 22772 17004 Accepted 100
43 5 0161.4 23336 17772 Accepted 100
44 5 0146.7 22772 16860 Accepted 100
45 5 0146.5 22772 16920 Accepted 100
46 5 0143.8 22776 16944 Accepted 100
47 5 0143.7 22772 17048 Accepted 100
48 5 0138.7 21720 16888 Accepted 100
49 5 0139.2 20752 16032 Accepted 100
50 5 0140.5 20396 15816 Accepted 100
51 5 0142.6 20520 15372 Accepted 100
52 5 0142.7 20480 15496 Accepted 100
53 5 0144.3 20144 15216 Accepted 100
54 5 0143.0 19928 15464 Accepted 100
55 5 0139.3 20876 16328 Accepted 100
56 5 0138.6 20876 16232 Accepted 100
57 5 0145.9 20396 15924 Accepted 100
58 5 0143.0 20396 16048 Accepted 100
59 5 0142.5 20100 15800 Accepted 100
60 5 0141.6 20100 15860 Accepted 100
61 5 0158.9 36868 30712 Accepted 100
62 5 0158.2 36868 30740 Accepted 100
63 5 0108.7 27928 22900 Accepted 100
64 5 0109.1 27928 23180 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
7.53 KB
Back to Top