Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

27448
385096
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 385752 4800 Accepted 100
1 1 4 0020.2 385752 5880 Accepted 100
2 1 4 0058.0 385752 5772 Accepted 100
3 1 4 0090.5 385752 6080 Accepted 100
4 1 4 0064.8 385752 5644 Accepted 100
5 1 4 0094.9 385752 7968 Accepted 100
6 1 4 0051.0 385752 4952 Accepted 100
7 1 4 0062.4 385752 7136 Accepted 100
8 1 4 0106.3 385752 8084 Accepted 100
9 1 4 0005.7 385752 4780 Accepted 100
10 2 4 0934.3 387864 290268 Accepted 100
11 2 4 0880.4 389096 373940 Accepted 100
12 2 4 1040.5 388524 368192 Accepted 100
13 2 4 0605.0 387524 208304 Accepted 100
14 2 4 0469.7 386940 173668 Accepted 100
15 2 4 0617.5 387488 231216 Accepted 100
16 2 4 1059.5 388128 326180 Accepted 100
17 2 4 0556.6 387480 228596 Accepted 100
18 2 4 0624.6 388736 275432 Accepted 100
19 2 4 0758.1 388820 306020 Accepted 100
20 3 4 0729.5 387336 262204 Accepted 100
21 3 4 0667.4 386808 190616 Accepted 100
22 3 4 1045.3 388128 385096 Accepted 100
23 3 4 0880.9 387864 344592 Accepted 100
24 3 4 1072.2 387732 333660 Accepted 100
25 3 4 0538.9 386676 160752 Accepted 100
26 3 4 0842.8 387468 284584 Accepted 100
27 3 4 0749.0 387468 283348 Accepted 100
28 3 4 0975.5 387996 382692 Accepted 100
29 3 4 0831.0 387468 288316 Accepted 100
30 4 0614.6 387336 214212 Accepted 100
31 4 0844.9 388680 376768 Accepted 100
32 4 0902.3 389008 351780 Accepted 100
33 4 0652.9 387204 205916 Accepted 100
34 4 0707.6 388132 306812 Accepted 100
35 4 0604.8 387652 239732 Accepted 100
36 4 1042.0 388392 358048 Accepted 100
37 4 0829.6 389096 373696 Accepted 100
38 4 0929.2 388128 317880 Accepted 100
39 4 0854.7 387600 246132 Accepted 100
40 4 0648.2 388736 275484 Accepted 100
41 4 0698.3 388808 303052 Accepted 100
42 4 0523.4 387384 215484 Accepted 100
43 4 0608.3 387676 243348 Accepted 100
44 4 0551.1 387680 247076 Accepted 100
Submitter:
Compiler:
c++14
Code Length:
3.49 KB
Back to Top