Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

5058
37204
Runtime Error (killed by signal)
0

Subtask Results

Subtask no. Testdata Range Constraints Score
1 0~9 $n\leq 500$ 0 / 16
2 10~19 對於所有的 $i=1,2\dots,n-1$,皆有 $p_i=1$。 0 / 31
3 20~29 對於所有的 $i=1,2,\dots,n-1$,皆有 $u_i=i, v_i=i+1$。 0 / 37
4 0~44 無額外限制。 0 / 16

Testdata Results

Testdata no. Subtasks Time (ms) Memory (VSS, KiB) Memory (RSS, KiB) Verdict Score
0 1 4 0014.3 385740 12344 Accepted 100
1 1 4 0007.8 385740 5516 Runtime Error (killed by signal) 0
2 1 4 0007.3 385740 5540 Runtime Error (killed by signal) 0
3 1 4 0008.5 385740 5792 Runtime Error (killed by signal) 0
4 1 4 0007.7 385740 5572 Runtime Error (killed by signal) 0
5 1 4 0011.0 385740 5780 Runtime Error (killed by signal) 0
6 1 4 0006.3 385740 5616 Runtime Error (killed by signal) 0
7 1 4 0008.3 385740 5608 Runtime Error (killed by signal) 0
8 1 4 0010.1 385740 5712 Runtime Error (killed by signal) 0
9 1 4 0006.6 385740 5556 Runtime Error (killed by signal) 0
10 2 4 0194.6 387852 27800 Runtime Error (killed by signal) 0
11 2 4 0223.8 388724 33860 Runtime Error (killed by signal) 0
12 2 4 0244.4 388512 33836 Runtime Error (killed by signal) 0
13 2 4 0121.8 387236 21300 Runtime Error (killed by signal) 0
14 2 4 0101.1 386928 18520 Runtime Error (killed by signal) 0
15 2 4 0132.4 387308 23136 Runtime Error (killed by signal) 0
16 2 4 0211.0 388116 30512 Runtime Error (killed by signal) 0
17 2 4 0136.5 387468 23012 Runtime Error (killed by signal) 0
18 2 4 0162.5 388724 26444 Runtime Error (killed by signal) 0
19 2 4 0182.9 388724 28640 Runtime Error (killed by signal) 0
20 3 4 0066.1 389308 27340 Runtime Error (killed by signal) 0
21 3 4 0051.7 388200 21192 Runtime Error (killed by signal) 0
22 3 4 0085.5 391116 37076 Runtime Error (killed by signal) 0
23 3 4 0084.2 390520 34496 Runtime Error (killed by signal) 0
24 3 4 0077.8 390300 33420 Runtime Error (killed by signal) 0
25 3 4 0042.8 387816 18708 Runtime Error (killed by signal) 0
26 3 4 0069.6 389624 29272 Runtime Error (killed by signal) 0
27 3 4 0069.7 389616 29300 Runtime Error (killed by signal) 0
28 3 4 0095.3 390960 37204 Runtime Error (killed by signal) 0
29 3 4 0071.5 389660 29472 Runtime Error (killed by signal) 0
30 4 0136.6 387324 21928 Runtime Error (killed by signal) 0
31 4 0232.5 388668 34300 Runtime Error (killed by signal) 0
32 4 0205.4 388724 32304 Runtime Error (killed by signal) 0
33 4 0119.3 387192 21328 Runtime Error (killed by signal) 0
34 4 0184.1 388120 29232 Runtime Error (killed by signal) 0
35 4 0135.0 387308 23700 Runtime Error (killed by signal) 0
36 4 0227.6 388380 33072 Runtime Error (killed by signal) 0
37 4 0219.8 388724 33868 Runtime Error (killed by signal) 0
38 4 0197.6 388172 30016 Runtime Error (killed by signal) 0
39 4 0150.9 387596 24344 Runtime Error (killed by signal) 0
40 4 0161.4 388724 26468 Runtime Error (killed by signal) 0
41 4 0175.8 388724 28564 Runtime Error (killed by signal) 0
42 4 0122.4 387372 21972 Runtime Error (killed by signal) 0
43 4 0139.5 387520 23992 Runtime Error (killed by signal) 0
44 4 0137.5 387308 24204 Runtime Error (killed by signal) 0
Submitter:
Compiler:
c++17
Code Length:
3.35 KB
Back to Top