Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

17995
49292
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 0016.0 26936 14584 Accepted 100
1 1 0016.0 26936 14492 Accepted 100
2 1 0016.0 26936 14548 Accepted 100
3 2 5 0027.9 27728 15880 Accepted 100
4 2 5 0029.4 27728 15836 Accepted 100
5 2 5 0029.4 27728 15664 Accepted 100
6 2 5 0026.1 27728 15816 Accepted 100
7 2 5 0027.7 28020 16268 Accepted 100
8 2 5 0026.9 28020 16188 Accepted 100
9 2 5 0027.0 28016 16232 Accepted 100
10 2 5 0030.5 27748 16004 Accepted 100
11 2 5 0032.8 27656 15976 Accepted 100
12 2 5 0027.3 27748 16004 Accepted 100
13 2 5 0027.6 27656 15852 Accepted 100
14 3 5 0268.3 42644 40112 Accepted 100
15 3 5 0273.6 42644 40036 Accepted 100
16 3 5 0264.5 42644 40020 Accepted 100
17 3 5 0267.2 42644 40072 Accepted 100
18 3 5 0262.9 42648 40120 Accepted 100
19 3 5 0262.6 42644 40064 Accepted 100
20 3 5 0265.7 42644 39960 Accepted 100
21 3 5 0255.4 42644 40020 Accepted 100
22 4 5 0361.2 50672 47788 Accepted 100
23 4 5 0358.0 50672 47760 Accepted 100
24 4 5 0365.5 50672 47740 Accepted 100
25 4 5 0359.0 50672 47780 Accepted 100
26 4 5 0358.2 50668 47620 Accepted 100
27 4 5 0354.5 50676 47712 Accepted 100
28 4 5 0360.6 50668 47772 Accepted 100
29 4 5 0356.0 50676 47716 Accepted 100
30 4 5 0299.4 50676 47792 Accepted 100
31 4 5 0249.1 50672 47752 Accepted 100
32 4 5 0250.1 50672 47760 Accepted 100
33 5 0392.3 42644 40184 Accepted 100
34 5 0382.6 42644 40020 Accepted 100
35 5 0381.3 42644 40020 Accepted 100
36 5 0381.8 42644 40080 Accepted 100
37 5 0389.7 42644 40020 Accepted 100
38 5 0300.9 42644 40008 Accepted 100
39 5 0375.1 42644 40016 Accepted 100
40 5 0396.6 42644 40036 Accepted 100
41 5 0376.7 42644 40100 Accepted 100
42 5 0377.8 42644 40004 Accepted 100
43 5 0388.1 42644 40028 Accepted 100
44 5 0393.7 42644 40004 Accepted 100
45 5 0394.5 42512 40008 Accepted 100
46 5 0319.5 42652 40048 Accepted 100
47 5 0278.7 42644 39936 Accepted 100
48 5 0466.6 43768 40620 Accepted 100
49 5 0403.1 42552 39608 Accepted 100
50 5 0385.9 42092 39112 Accepted 100
51 5 0373.2 41904 38732 Accepted 100
52 5 0383.6 41360 38812 Accepted 100
53 5 0371.8 41184 38180 Accepted 100
54 5 0378.5 41096 38536 Accepted 100
55 5 0419.1 42552 39504 Accepted 100
56 5 0419.8 42552 39656 Accepted 100
57 5 0406.4 42088 39032 Accepted 100
58 5 0406.6 42088 39132 Accepted 100
59 5 0401.6 41908 38692 Accepted 100
60 5 0404.6 41908 38780 Accepted 100
61 5 0263.5 52400 49272 Accepted 100
62 5 0260.8 52400 49292 Accepted 100
63 5 0283.6 51284 48492 Accepted 100
64 5 0284.6 51280 48440 Accepted 100
Submitter:
Compiler:
c++20
Code Length:
7 KB
Back to Top