Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

15878
48776
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 0015.6 26904 13856 Accepted 100
1 1 0015.7 26904 13788 Accepted 100
2 1 0015.6 26904 13840 Accepted 100
3 2 5 0026.0 27696 15392 Accepted 100
4 2 5 0027.3 27696 15324 Accepted 100
5 2 5 0027.3 27696 15224 Accepted 100
6 2 5 0024.1 27696 15224 Accepted 100
7 2 5 0025.6 27988 15616 Accepted 100
8 2 5 0025.3 27988 15548 Accepted 100
9 2 5 0025.2 27984 15692 Accepted 100
10 2 5 0028.3 27712 15320 Accepted 100
11 2 5 0030.3 27624 15416 Accepted 100
12 2 5 0024.3 27712 15296 Accepted 100
13 2 5 0025.5 27624 15164 Accepted 100
14 3 5 0244.0 42612 39420 Accepted 100
15 3 5 0236.5 42612 39368 Accepted 100
16 3 5 0237.2 42612 39380 Accepted 100
17 3 5 0237.7 42612 39424 Accepted 100
18 3 5 0240.9 42616 39460 Accepted 100
19 3 5 0239.6 42612 39420 Accepted 100
20 3 5 0237.5 42612 39332 Accepted 100
21 3 5 0238.2 42612 39376 Accepted 100
22 4 5 0308.2 50772 47148 Accepted 100
23 4 5 0310.8 50772 47160 Accepted 100
24 4 5 0313.5 50776 47240 Accepted 100
25 4 5 0315.7 50776 47312 Accepted 100
26 4 5 0316.1 50776 47120 Accepted 100
27 4 5 0313.7 50776 47168 Accepted 100
28 4 5 0315.7 50776 47188 Accepted 100
29 4 5 0313.9 50776 47204 Accepted 100
30 4 5 0258.9 50772 47160 Accepted 100
31 4 5 0215.4 50776 47124 Accepted 100
32 4 5 0212.0 50780 47244 Accepted 100
33 5 0368.2 42612 39664 Accepted 100
34 5 0338.3 42612 39440 Accepted 100
35 5 0329.9 42612 39556 Accepted 100
36 5 0331.6 42612 39428 Accepted 100
37 5 0334.5 42612 39456 Accepted 100
38 5 0257.6 42612 39432 Accepted 100
39 5 0320.3 42612 39624 Accepted 100
40 5 0347.0 42612 39456 Accepted 100
41 5 0334.1 42612 39448 Accepted 100
42 5 0333.8 42612 39436 Accepted 100
43 5 0342.9 42612 39400 Accepted 100
44 5 0337.2 42612 39452 Accepted 100
45 5 0345.4 42612 39608 Accepted 100
46 5 0283.1 42616 39516 Accepted 100
47 5 0255.7 42612 39452 Accepted 100
48 5 0418.1 43768 39972 Accepted 100
49 5 0358.3 42512 38952 Accepted 100
50 5 0341.0 42096 38420 Accepted 100
51 5 0331.8 41860 38100 Accepted 100
52 5 0349.6 41360 38184 Accepted 100
53 5 0331.7 41160 37536 Accepted 100
54 5 0333.5 41100 37824 Accepted 100
55 5 0370.7 42516 38956 Accepted 100
56 5 0381.3 42512 38920 Accepted 100
57 5 0361.1 42096 38488 Accepted 100
58 5 0366.2 42092 38420 Accepted 100
59 5 0355.2 41860 38052 Accepted 100
60 5 0353.7 41864 38036 Accepted 100
61 5 0218.8 52396 48776 Accepted 100
62 5 0220.7 52396 48752 Accepted 100
63 5 0245.4 51256 47904 Accepted 100
64 5 0240.2 51252 48088 Accepted 100
Submitter:
Compiler:
c++20
Code Length:
7.41 KB
Back to Top