Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

32148
413968
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.3 410704 4856 Accepted 100
1 1 4 0020.5 410704 5804 Accepted 100
2 1 4 0059.1 410704 5836 Accepted 100
3 1 4 0091.2 410704 6164 Accepted 100
4 1 4 0062.3 410704 5828 Accepted 100
5 1 4 0092.0 410704 8160 Accepted 100
6 1 4 0048.1 410704 5116 Accepted 100
7 1 4 0062.8 410704 7316 Accepted 100
8 1 4 0104.9 410704 8232 Accepted 100
9 1 4 0005.8 410704 4832 Accepted 100
10 2 4 1066.6 412684 308764 Accepted 100
11 2 4 1030.1 413304 397164 Accepted 100
12 2 4 1190.6 413212 391888 Accepted 100
13 2 4 0709.6 412012 221376 Accepted 100
14 2 4 0546.1 411892 184724 Accepted 100
15 2 4 0760.7 412144 246136 Accepted 100
16 2 4 1222.5 412948 347076 Accepted 100
17 2 4 0671.8 412300 243024 Accepted 100
18 2 4 0770.6 413304 292424 Accepted 100
19 2 4 0903.8 413304 325180 Accepted 100
20 3 4 0867.3 414804 281748 Accepted 100
21 3 4 0754.7 413540 204676 Accepted 100
22 3 4 1202.0 416856 413968 Accepted 100
23 3 4 1013.7 416180 370544 Accepted 100
24 3 4 1237.9 415932 358632 Accepted 100
25 3 4 0634.3 413104 172672 Accepted 100
26 3 4 0958.7 415164 305696 Accepted 100
27 3 4 0881.5 415152 304488 Accepted 100
28 3 4 1134.1 416700 411416 Accepted 100
29 3 4 0969.2 415204 309928 Accepted 100
30 4 0718.3 412156 228008 Accepted 100
31 4 1032.0 413276 400944 Accepted 100
32 4 1055.5 413304 373716 Accepted 100
33 4 0768.0 412024 219180 Accepted 100
34 4 0862.0 412816 326356 Accepted 100
35 4 0723.6 412144 254692 Accepted 100
36 4 1226.8 413080 380980 Accepted 100
37 4 0994.9 413304 397204 Accepted 100
38 4 1075.3 412920 338552 Accepted 100
39 4 0968.6 412464 262024 Accepted 100
40 4 0792.1 413304 292676 Accepted 100
41 4 0828.3 413304 322340 Accepted 100
42 4 0638.7 412192 229216 Accepted 100
43 4 0730.2 412324 258780 Accepted 100
44 4 0657.2 412144 262600 Accepted 100
Submitter:
Compiler:
c++14
Code Length:
3.87 KB
Back to Top