Back to Submissions List

Problem

Total Time (ms)

Max Memory (KiB)

Verdict

Score

30164
479400
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 (KiB) Verdict Score
0 1 4 0 4724 Accepted 100
1 1 4 20 6168 Accepted 100
2 1 4 72 5920 Accepted 100
3 1 4 108 6436 Accepted 100
4 1 4 76 5844 Accepted 100
5 1 4 116 8672 Accepted 100
6 1 4 60 5148 Accepted 100
7 1 4 72 7860 Accepted 100
8 1 4 132 8884 Accepted 100
9 1 4 4 4824 Accepted 100
10 2 4 1072 360964 Accepted 100
11 2 4 956 465156 Accepted 100
12 2 4 1128 458312 Accepted 100
13 2 4 660 258820 Accepted 100
14 2 4 508 215464 Accepted 100
15 2 4 700 287708 Accepted 100
16 2 4 1172 405900 Accepted 100
17 2 4 608 283952 Accepted 100
18 2 4 684 342308 Accepted 100
19 2 4 804 380668 Accepted 100
20 3 4 784 325932 Accepted 100
21 3 4 724 236560 Accepted 100
22 3 4 1128 479400 Accepted 100
23 3 4 964 429056 Accepted 100
24 3 4 1164 415108 Accepted 100
25 3 4 608 199416 Accepted 100
26 3 4 896 353800 Accepted 100
27 3 4 828 352320 Accepted 100
28 3 4 1072 476556 Accepted 100
29 3 4 924 358620 Accepted 100
30 4 656 266204 Accepted 100
31 4 944 468880 Accepted 100
32 4 976 437640 Accepted 100
33 4 740 255960 Accepted 100
34 4 776 381684 Accepted 100
35 4 668 297948 Accepted 100
36 4 1172 445572 Accepted 100
37 4 908 465044 Accepted 100
38 4 1008 395680 Accepted 100
39 4 948 305952 Accepted 100
40 4 720 342452 Accepted 100
41 4 756 377088 Accepted 100
42 4 568 267812 Accepted 100
43 4 676 302480 Accepted 100
44 4 604 306916 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
4.21 KB
Back to Top