Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

31541
388220
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.4 385740 4876 Accepted 100
1 1 4 0021.7 385740 5884 Accepted 100
2 1 4 0064.6 385740 5928 Accepted 100
3 1 4 0100.3 385740 6172 Accepted 100
4 1 4 0066.8 385740 5728 Accepted 100
5 1 4 0096.7 385740 8032 Accepted 100
6 1 4 0052.7 385740 5096 Accepted 100
7 1 4 0067.1 385740 7152 Accepted 100
8 1 4 0112.7 385740 7916 Accepted 100
9 1 4 0006.2 385740 4896 Accepted 100
10 2 4 1057.7 387852 290424 Accepted 100
11 2 4 1017.4 388724 373312 Accepted 100
12 2 4 1151.2 388512 368304 Accepted 100
13 2 4 0699.8 387236 208324 Accepted 100
14 2 4 0522.6 386928 173812 Accepted 100
15 2 4 0767.9 387308 231336 Accepted 100
16 2 4 1179.5 388116 326352 Accepted 100
17 2 4 0658.2 387468 228696 Accepted 100
18 2 4 0750.7 388724 274844 Accepted 100
19 2 4 0892.1 388724 305420 Accepted 100
20 3 4 0848.9 389308 264268 Accepted 100
21 3 4 0730.2 388196 192164 Accepted 100
22 3 4 1154.8 391116 388220 Accepted 100
23 3 4 0986.0 390516 347484 Accepted 100
24 3 4 1235.4 390296 336448 Accepted 100
25 3 4 0625.5 387816 162108 Accepted 100
26 3 4 0921.5 389628 286888 Accepted 100
27 3 4 0864.2 389616 285628 Accepted 100
28 3 4 1099.0 390964 385860 Accepted 100
29 3 4 0944.5 389660 290784 Accepted 100
30 4 0676.4 387324 214376 Accepted 100
31 4 1016.1 388668 376912 Accepted 100
32 4 1055.6 388724 351248 Accepted 100
33 4 0735.0 387192 206116 Accepted 100
34 4 0843.8 388120 306864 Accepted 100
35 4 0719.3 387308 239448 Accepted 100
36 4 1188.9 388380 358036 Accepted 100
37 4 0990.2 388724 373264 Accepted 100
38 4 1022.3 388176 318144 Accepted 100
39 4 0953.4 387600 246360 Accepted 100
40 4 0777.3 388724 275192 Accepted 100
41 4 0817.1 388724 302936 Accepted 100
42 4 0645.4 387372 215612 Accepted 100
43 4 0738.6 387520 243408 Accepted 100
44 4 0661.5 387308 246836 Accepted 100
Submitter:
Compiler:
c++14
Code Length:
3.33 KB
Back to Top