Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

52735
388240
Time Limit Exceeded
16

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$。 0 / 31
3 20~29 對於所有的 $i=1,2,\dots,n-1$,皆有 $u_i=i, v_i=i+1$。 0 / 37
4 0~44 無額外限制。 0 / 16

Testdata Results

Testdata no. Subtasks Time (ms) Memory (VSS, KiB) Memory (RSS, KiB) Verdict Score
0 1 4 0004.2 385740 4856 Accepted 100
1 1 4 0022.9 385740 5928 Accepted 100
2 1 4 0065.0 385740 5828 Accepted 100
3 1 4 0100.9 385740 6208 Accepted 100
4 1 4 0070.9 385740 5708 Accepted 100
5 1 4 0106.3 385740 8020 Accepted 100
6 1 4 0054.6 385740 5120 Accepted 100
7 1 4 0073.7 385740 7212 Accepted 100
8 1 4 0121.4 385740 8108 Accepted 100
9 1 4 0006.2 385740 4872 Accepted 100
10 2 4 1971.9 387852 290488 Accepted 100
11 2 4 1707.8 388724 373408 Accepted 100
12 2 4 2137.9 388512 368176 Time Limit Exceeded 0
13 2 4 1129.7 387236 208352 Accepted 100
14 2 4 0946.5 386928 173812 Accepted 100
15 2 4 1096.1 387308 231272 Accepted 100
16 2 4 2103.0 388116 326276 Time Limit Exceeded 0
17 2 4 1029.9 387468 228688 Accepted 100
18 2 4 1223.5 388724 274876 Accepted 100
19 2 4 1388.4 388724 305500 Accepted 100
20 3 4 1420.8 389312 264316 Accepted 100
21 3 4 1217.5 388200 192088 Accepted 100
22 3 4 2102.2 391116 388240 Time Limit Exceeded 0
23 3 4 1906.5 390520 347532 Accepted 100
24 3 4 2058.1 390292 336488 Time Limit Exceeded 0
25 3 4 1034.8 387816 162172 Accepted 100
26 3 4 1534.1 389628 286884 Accepted 100
27 3 4 1452.9 389616 285644 Accepted 100
28 3 4 1976.3 390960 385980 Accepted 100
29 3 4 1619.0 389660 290792 Accepted 100
30 4 1167.3 387324 214200 Accepted 100
31 4 1547.4 388668 376776 Accepted 100
32 4 1652.9 388724 351256 Accepted 100
33 4 1184.0 387192 206116 Accepted 100
34 4 1324.6 388120 306840 Accepted 100
35 4 1116.7 387308 239376 Accepted 100
36 4 2152.1 388380 358132 Time Limit Exceeded 0
37 4 1648.4 388724 373392 Accepted 100
38 4 1899.9 388172 318140 Accepted 100
39 4 1703.8 387596 246356 Accepted 100
40 4 1292.9 388724 275060 Accepted 100
41 4 1319.9 388724 302840 Accepted 100
42 4 1033.3 387372 215540 Accepted 100
43 4 1138.0 387520 243368 Accepted 100
44 4 0871.2 387308 246864 Accepted 100
Submitter:
Compiler:
c++14
Code Length:
3.33 KB
Back to Top