Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

30046
412728
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.0 409364 4840 Accepted 100
1 1 4 0025.6 409364 5984 Accepted 100
2 1 4 0074.1 409364 5792 Accepted 100
3 1 4 0120.8 409364 6232 Accepted 100
4 1 4 0078.7 409364 5596 Accepted 100
5 1 4 0115.5 409364 8220 Accepted 100
6 1 4 0066.2 409364 5120 Accepted 100
7 1 4 0082.3 409364 7368 Accepted 100
8 1 4 0129.8 409364 8224 Accepted 100
9 1 4 0006.3 409364 4828 Accepted 100
10 2 4 0980.9 411476 308104 Accepted 100
11 2 4 0965.4 412348 396300 Accepted 100
12 2 4 1075.4 412136 390792 Accepted 100
13 2 4 0686.0 410860 220776 Accepted 100
14 2 4 0494.8 410552 184172 Accepted 100
15 2 4 0733.4 410932 245320 Accepted 100
16 2 4 1110.6 411740 346160 Accepted 100
17 2 4 0622.6 411092 242472 Accepted 100
18 2 4 0718.0 412348 291820 Accepted 100
19 2 4 0851.6 412348 324296 Accepted 100
20 3 4 0801.7 413460 280652 Accepted 100
21 3 4 0700.4 412200 204028 Accepted 100
22 3 4 1111.1 415516 412728 Accepted 100
23 3 4 0933.6 414840 369264 Accepted 100
24 3 4 1164.5 414596 357344 Accepted 100
25 3 4 0590.2 411760 172104 Accepted 100
26 3 4 0877.3 413824 304824 Accepted 100
27 3 4 0825.3 413808 303436 Accepted 100
28 3 4 1036.6 415360 410072 Accepted 100
29 3 4 0894.8 413864 308832 Accepted 100
30 4 0634.3 410948 227372 Accepted 100
31 4 0957.7 412292 399812 Accepted 100
32 4 1006.7 412348 372896 Accepted 100
33 4 0690.9 410816 218572 Accepted 100
34 4 0799.1 411744 325564 Accepted 100
35 4 0724.4 410932 253988 Accepted 100
36 4 1142.7 412004 379952 Accepted 100
37 4 0936.8 412348 396112 Accepted 100
38 4 0975.0 411844 337556 Accepted 100
39 4 0869.5 411260 261268 Accepted 100
40 4 0744.7 412348 291884 Accepted 100
41 4 0778.7 412348 321424 Accepted 100
42 4 0595.9 410996 228552 Accepted 100
43 4 0692.0 411144 257968 Accepted 100
44 4 0620.0 410932 261892 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
2.96 KB
Back to Top