Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

17860
49308
Accepted
100

Subtask Results

Subtask no. Testdata Range Constraints Score
1 0~2 範例測資 0 / 0
2 3~13 $N,Q\le 5000$ 7 / 7
3 14~21 每次答案皆⾮零,且樹是隨機⽣成的 12 / 12
4 22~32 $(u_i,v_i)=(i,i+1)$ 22 / 22
5 3~64 無額外限制 59 / 59

Testdata Results

Testdata no. Subtasks Time (ms) Memory (VSS, KiB) Memory (RSS, KiB) Verdict Score
0 1 0015.9 26932 14628 Accepted 100
1 1 0015.9 26932 14616 Accepted 100
2 1 0016.1 26932 14624 Accepted 100
3 2 5 0028.2 27724 15912 Accepted 100
4 2 5 0029.5 27724 15876 Accepted 100
5 2 5 0030.3 27724 15864 Accepted 100
6 2 5 0026.1 27724 15928 Accepted 100
7 2 5 0027.5 28012 16096 Accepted 100
8 2 5 0027.7 28012 16368 Accepted 100
9 2 5 0027.1 28016 16264 Accepted 100
10 2 5 0030.0 27744 15996 Accepted 100
11 2 5 0032.6 27652 15900 Accepted 100
12 2 5 0026.8 27744 15832 Accepted 100
13 2 5 0027.6 27648 15768 Accepted 100
14 3 5 0269.5 42640 40076 Accepted 100
15 3 5 0267.3 42640 40128 Accepted 100
16 3 5 0265.2 42640 40044 Accepted 100
17 3 5 0264.7 42640 40104 Accepted 100
18 3 5 0250.2 42644 40256 Accepted 100
19 3 5 0259.2 42640 39924 Accepted 100
20 3 5 0246.7 42640 40064 Accepted 100
21 3 5 0258.0 42640 40032 Accepted 100
22 4 5 0354.8 50664 47652 Accepted 100
23 4 5 0362.6 50672 47864 Accepted 100
24 4 5 0358.9 50672 47796 Accepted 100
25 4 5 0364.4 50672 47740 Accepted 100
26 4 5 0356.3 50672 47864 Accepted 100
27 4 5 0352.6 50664 47732 Accepted 100
28 4 5 0356.6 50672 47796 Accepted 100
29 4 5 0356.3 50672 47780 Accepted 100
30 4 5 0299.2 50668 47860 Accepted 100
31 4 5 0251.8 50668 47812 Accepted 100
32 4 5 0249.4 50664 47808 Accepted 100
33 5 0396.8 42640 40212 Accepted 100
34 5 0377.8 42640 40060 Accepted 100
35 5 0372.4 42640 40112 Accepted 100
36 5 0373.7 42640 39956 Accepted 100
37 5 0389.1 42640 39992 Accepted 100
38 5 0287.6 42640 40100 Accepted 100
39 5 0365.1 42640 40064 Accepted 100
40 5 0385.0 42640 40088 Accepted 100
41 5 0382.3 42640 40108 Accepted 100
42 5 0371.4 42640 40096 Accepted 100
43 5 0394.9 42640 40128 Accepted 100
44 5 0374.1 42640 40116 Accepted 100
45 5 0381.4 42508 40104 Accepted 100
46 5 0300.1 42644 40128 Accepted 100
47 5 0286.6 42640 40108 Accepted 100
48 5 0458.6 43764 40616 Accepted 100
49 5 0402.2 42544 39676 Accepted 100
50 5 0384.7 42088 39164 Accepted 100
51 5 0372.1 41900 38660 Accepted 100
52 5 0381.0 41352 38840 Accepted 100
53 5 0386.9 41184 38120 Accepted 100
54 5 0374.4 41096 38448 Accepted 100
55 5 0430.0 42544 39520 Accepted 100
56 5 0414.4 42548 39600 Accepted 100
57 5 0408.2 42088 39152 Accepted 100
58 5 0406.8 42088 39056 Accepted 100
59 5 0400.8 41904 38664 Accepted 100
60 5 0399.0 41900 38708 Accepted 100
61 5 0258.0 52396 49288 Accepted 100
62 5 0258.9 52396 49308 Accepted 100
63 5 0287.2 51284 48584 Accepted 100
64 5 0293.6 51280 48516 Accepted 100
Submitter:
Compiler:
c++20
Code Length:
7 KB
Back to Top