Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

29911
412496
Accepted
100

Subtask Results

Subtask no. Testdata Range Constraints Score
1 0~9 $n\leq 500$ 16 / 16
2 10~19 對於所有的 $i=1,2\dots,n-1$,皆有 $p_i=1$。 31 / 31
3 20~29 對於所有的 $i=1,2,\dots,n-1$,皆有 $u_i=i, v_i=i+1$。 37 / 37
4 0~44 無額外限制。 16 / 16

Testdata Results

Testdata no. Subtasks Time (ms) Memory (VSS, KiB) Memory (RSS, KiB) Verdict Score
0 1 4 0004.0 409364 4808 Accepted 100
1 1 4 0025.1 409364 5904 Accepted 100
2 1 4 0073.1 409364 5704 Accepted 100
3 1 4 0117.9 409364 6164 Accepted 100
4 1 4 0077.4 409364 5768 Accepted 100
5 1 4 0112.9 409364 8176 Accepted 100
6 1 4 0065.8 409364 4908 Accepted 100
7 1 4 0081.6 409364 7304 Accepted 100
8 1 4 0127.6 409364 8224 Accepted 100
9 1 4 0006.1 409364 4864 Accepted 100
10 2 4 0977.8 411476 307972 Accepted 100
11 2 4 0973.7 412348 396440 Accepted 100
12 2 4 1062.8 412136 390788 Accepted 100
13 2 4 0687.5 410860 220624 Accepted 100
14 2 4 0494.3 410552 184236 Accepted 100
15 2 4 0731.7 410932 245180 Accepted 100
16 2 4 1119.4 411740 346048 Accepted 100
17 2 4 0621.9 411092 242496 Accepted 100
18 2 4 0716.3 412348 291780 Accepted 100
19 2 4 0845.7 412348 324212 Accepted 100
20 3 4 0800.1 413468 280824 Accepted 100
21 3 4 0692.0 412200 204132 Accepted 100
22 3 4 1096.4 415516 412496 Accepted 100
23 3 4 0930.4 414840 369220 Accepted 100
24 3 4 1171.1 414592 357512 Accepted 100
25 3 4 0595.7 411764 172064 Accepted 100
26 3 4 0870.9 413828 304692 Accepted 100
27 3 4 0822.5 413812 303444 Accepted 100
28 3 4 1051.6 415364 410060 Accepted 100
29 3 4 0886.4 413864 308868 Accepted 100
30 4 0636.2 410952 227300 Accepted 100
31 4 0955.1 412292 399904 Accepted 100
32 4 1007.9 412348 372884 Accepted 100
33 4 0697.1 410816 218500 Accepted 100
34 4 0800.6 411744 325512 Accepted 100
35 4 0692.0 410932 253904 Accepted 100
36 4 1103.9 412004 380020 Accepted 100
37 4 0928.4 412348 396020 Accepted 100
38 4 0960.4 411844 337556 Accepted 100
39 4 0874.4 411260 261344 Accepted 100
40 4 0737.7 412348 291784 Accepted 100
41 4 0776.2 412348 321352 Accepted 100
42 4 0593.1 410996 228596 Accepted 100
43 4 0688.1 411144 258196 Accepted 100
44 4 0620.7 410932 262000 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
2.96 KB
Back to Top