Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

37208
392144
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 0525.4 385784 380116 Accepted 100
1 1 4 0559.6 385784 380144 Accepted 100
2 1 4 0596.9 385784 379892 Accepted 100
3 1 4 0662.2 385784 380180 Accepted 100
4 1 4 0601.2 385784 380172 Accepted 100
5 1 4 0641.5 385784 380164 Accepted 100
6 1 4 0583.8 385784 380060 Accepted 100
7 1 4 0594.6 385784 380004 Accepted 100
8 1 4 0656.6 385784 380216 Accepted 100
9 1 4 0510.3 385784 380080 Accepted 100
10 2 4 1105.4 387972 384972 Accepted 100
11 2 4 0724.6 388804 385412 Accepted 100
12 2 4 1083.6 388580 386356 Accepted 100
13 2 4 0762.2 387316 382696 Accepted 100
14 2 4 0723.7 387104 382920 Accepted 100
15 2 4 0762.4 387388 383232 Accepted 100
16 2 4 1146.6 388160 385388 Accepted 100
17 2 4 0672.0 387516 383892 Accepted 100
18 2 4 0656.5 388804 383796 Accepted 100
19 2 4 0734.4 388804 384400 Accepted 100
20 3 4 1020.8 391464 388336 Accepted 100
21 3 4 1070.0 389896 385860 Accepted 100
22 3 4 1195.7 394276 392140 Accepted 100
23 3 4 0981.7 393356 391036 Accepted 100
24 3 4 1384.9 393040 390616 Accepted 100
25 3 4 0954.9 389144 385012 Accepted 100
26 3 4 1172.5 391964 389008 Accepted 100
27 3 4 0958.5 391952 389016 Accepted 100
28 3 4 1081.6 394240 392144 Accepted 100
29 3 4 1119.8 392032 389132 Accepted 100
30 4 0853.3 387448 383696 Accepted 100
31 4 0708.0 388752 386296 Accepted 100
32 4 0798.1 388804 385004 Accepted 100
33 4 0873.5 387368 383472 Accepted 100
34 4 0686.1 388160 385112 Accepted 100
35 4 0709.3 387388 383088 Accepted 100
36 4 1089.9 388424 386076 Accepted 100
37 4 0666.9 388804 385392 Accepted 100
38 4 1086.6 388404 385572 Accepted 100
39 4 1119.0 387776 384400 Accepted 100
40 4 0669.6 388804 383716 Accepted 100
41 4 0665.9 388804 384368 Accepted 100
42 4 0712.4 387392 383604 Accepted 100
43 4 0723.9 387604 384112 Accepted 100
44 4 0601.8 387388 383536 Accepted 100
Submitter:
Compiler:
c++20
Code Length:
3.27 KB
Back to Top