Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

39810
392184
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 0430.5 385772 379940 Accepted 100
1 1 4 0451.6 385772 380060 Accepted 100
2 1 4 0496.6 385772 380052 Accepted 100
3 1 4 0537.4 385772 380068 Accepted 100
4 1 4 0505.2 385772 380228 Accepted 100
5 1 4 0547.7 385772 380100 Accepted 100
6 1 4 0494.6 385772 380116 Accepted 100
7 1 4 0512.9 385772 380076 Accepted 100
8 1 4 0565.4 385772 380144 Accepted 100
9 1 4 0435.2 385772 380116 Accepted 100
10 2 4 1310.5 387960 385072 Accepted 100
11 2 4 0719.3 388792 385416 Accepted 100
12 2 4 1416.1 388568 386320 Accepted 100
13 2 4 0738.4 387304 382928 Accepted 100
14 2 4 0793.2 387092 382972 Accepted 100
15 2 4 0719.4 387376 383236 Accepted 100
16 2 4 1339.6 388148 385376 Accepted 100
17 2 4 0668.6 387504 383904 Accepted 100
18 2 4 0600.8 388792 383808 Accepted 100
19 2 4 0728.5 388792 384412 Accepted 100
20 3 4 1164.7 391460 388152 Accepted 100
21 3 4 1170.7 389884 385960 Accepted 100
22 3 4 1516.5 394268 392184 Accepted 100
23 3 4 1325.6 393336 390812 Accepted 100
24 3 4 1557.9 393024 390564 Accepted 100
25 3 4 0989.8 389136 384960 Accepted 100
26 3 4 1345.1 391952 388968 Accepted 100
27 3 4 1281.9 391936 388856 Accepted 100
28 3 4 1507.7 394228 391960 Accepted 100
29 3 4 1445.2 392024 389100 Accepted 100
30 4 1013.2 387436 383844 Accepted 100
31 4 0717.1 388740 386260 Accepted 100
32 4 0769.5 388792 385120 Accepted 100
33 4 0926.0 387356 383532 Accepted 100
34 4 0689.5 388148 385228 Accepted 100
35 4 0663.5 387376 383224 Accepted 100
36 4 1300.0 388412 385908 Accepted 100
37 4 0670.6 388792 385472 Accepted 100
38 4 1316.7 388388 385756 Accepted 100
39 4 1236.0 387768 384372 Accepted 100
40 4 0654.8 388792 383832 Accepted 100
41 4 0628.2 388792 384216 Accepted 100
42 4 0651.7 387380 383548 Accepted 100
43 4 0689.6 387592 384044 Accepted 100
44 4 0566.8 387376 383528 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
3.27 KB
Back to Top