Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

39945
392168
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 0421.6 385772 380000 Accepted 100
1 1 4 0445.9 385772 379992 Accepted 100
2 1 4 0492.5 385772 380024 Accepted 100
3 1 4 0533.8 385772 380136 Accepted 100
4 1 4 0500.3 385772 380120 Accepted 100
5 1 4 0531.5 385772 380000 Accepted 100
6 1 4 0493.7 385772 379972 Accepted 100
7 1 4 0502.4 385772 380016 Accepted 100
8 1 4 0567.3 385772 380108 Accepted 100
9 1 4 0428.0 385772 380112 Accepted 100
10 2 4 1310.7 387956 385068 Accepted 100
11 2 4 0712.8 388792 385352 Accepted 100
12 2 4 1409.2 388568 386184 Accepted 100
13 2 4 0744.2 387304 382824 Accepted 100
14 2 4 0797.8 387092 382916 Accepted 100
15 2 4 0718.2 387376 383176 Accepted 100
16 2 4 1353.4 388148 385556 Accepted 100
17 2 4 0673.9 387504 383920 Accepted 100
18 2 4 0599.9 388792 383800 Accepted 100
19 2 4 0730.9 388792 384264 Accepted 100
20 3 4 1164.1 391460 388400 Accepted 100
21 3 4 1229.8 389888 386124 Accepted 100
22 3 4 1492.2 394268 392168 Accepted 100
23 3 4 1410.5 393336 390852 Accepted 100
24 3 4 1647.1 393032 390468 Accepted 100
25 3 4 0951.3 389132 385012 Accepted 100
26 3 4 1349.1 391956 388972 Accepted 100
27 3 4 1279.0 391936 388944 Accepted 100
28 3 4 1509.1 394232 392016 Accepted 100
29 3 4 1439.0 392024 389068 Accepted 100
30 4 1014.9 387440 383716 Accepted 100
31 4 0723.8 388740 386288 Accepted 100
32 4 0778.3 388792 385072 Accepted 100
33 4 0933.2 387356 383512 Accepted 100
34 4 0692.8 388148 385188 Accepted 100
35 4 0668.4 387376 383312 Accepted 100
36 4 1299.7 388412 386172 Accepted 100
37 4 0671.2 388792 385472 Accepted 100
38 4 1325.8 388388 385724 Accepted 100
39 4 1222.1 387768 384532 Accepted 100
40 4 0654.1 388792 383720 Accepted 100
41 4 0609.0 388792 384348 Accepted 100
42 4 0654.2 387380 383648 Accepted 100
43 4 0678.8 387592 383996 Accepted 100
44 4 0579.2 387376 383540 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
3.27 KB
Back to Top