Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

29941
412668
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.1 409364 4788 Accepted 100
1 1 4 0025.7 409364 5916 Accepted 100
2 1 4 0073.2 409364 5808 Accepted 100
3 1 4 0118.8 409364 6224 Accepted 100
4 1 4 0078.6 409364 5700 Accepted 100
5 1 4 0112.4 409364 8140 Accepted 100
6 1 4 0064.6 409364 4940 Accepted 100
7 1 4 0082.0 409364 7304 Accepted 100
8 1 4 0129.2 409364 8248 Accepted 100
9 1 4 0006.1 409364 4828 Accepted 100
10 2 4 0976.4 411476 308140 Accepted 100
11 2 4 0972.2 412348 396436 Accepted 100
12 2 4 1067.3 412136 390800 Accepted 100
13 2 4 0685.2 410860 220768 Accepted 100
14 2 4 0495.7 410552 184056 Accepted 100
15 2 4 0734.1 410932 245268 Accepted 100
16 2 4 1107.6 411740 346280 Accepted 100
17 2 4 0625.1 411092 242492 Accepted 100
18 2 4 0712.1 412348 291880 Accepted 100
19 2 4 0844.4 412348 324248 Accepted 100
20 3 4 0793.4 413464 280784 Accepted 100
21 3 4 0701.5 412204 204008 Accepted 100
22 3 4 1090.3 415516 412668 Accepted 100
23 3 4 0951.7 414840 369264 Accepted 100
24 3 4 1164.6 414596 357576 Accepted 100
25 3 4 0588.8 411768 172068 Accepted 100
26 3 4 0874.8 413828 304596 Accepted 100
27 3 4 0820.4 413812 303480 Accepted 100
28 3 4 1042.3 415364 409968 Accepted 100
29 3 4 0893.3 413864 308972 Accepted 100
30 4 0630.2 410948 227288 Accepted 100
31 4 0961.7 412292 399784 Accepted 100
32 4 1004.6 412348 372828 Accepted 100
33 4 0691.0 410816 218500 Accepted 100
34 4 0804.6 411744 325388 Accepted 100
35 4 0697.6 410932 253956 Accepted 100
36 4 1108.6 412004 379936 Accepted 100
37 4 0927.9 412348 395960 Accepted 100
38 4 0975.2 411840 337532 Accepted 100
39 4 0878.3 411256 261332 Accepted 100
40 4 0744.0 412348 291820 Accepted 100
41 4 0775.7 412348 321356 Accepted 100
42 4 0592.8 410996 228536 Accepted 100
43 4 0691.1 411144 258076 Accepted 100
44 4 0621.1 410932 261856 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
2.96 KB
Back to Top