Back to Submissions List

Problem

Total Time (ms)

Max Memory (RSS, KiB)

Verdict

Score

20125
386048
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 0002.5 6048 3208 Accepted 100
1 1 4 0021.3 6592 3388 Accepted 100
2 1 4 0071.4 6536 3432 Accepted 100
3 1 4 0110.2 6704 3264 Accepted 100
4 1 4 0075.6 6432 3316 Accepted 100
5 1 4 0112.7 7948 4688 Accepted 100
6 1 4 0059.9 6224 3372 Accepted 100
7 1 4 0073.5 7376 4056 Accepted 100
8 1 4 0128.6 7988 4564 Accepted 100
9 1 4 0004.5 6048 3244 Accepted 100
10 2 4 0741.9 292544 289172 Accepted 100
11 2 4 0527.6 376880 373084 Accepted 100
12 2 4 0765.8 370816 367532 Accepted 100
13 2 4 0409.5 198048 194600 Accepted 100
14 2 4 0334.1 165140 161872 Accepted 100
15 2 4 0415.1 219604 216228 Accepted 100
16 2 4 0824.5 328612 325452 Accepted 100
17 2 4 0339.3 216908 213360 Accepted 100
18 2 4 0382.1 278764 274744 Accepted 100
19 2 4 0489.0 309348 305208 Accepted 100
20 3 4 0604.5 265492 262424 Accepted 100
21 3 4 0580.4 181788 178524 Accepted 100
22 3 4 0839.0 389492 386048 Accepted 100
23 3 4 0695.5 348664 345356 Accepted 100
24 3 4 0925.1 337552 334500 Accepted 100
25 3 4 0471.4 153516 150340 Accepted 100
26 3 4 0695.1 287980 284788 Accepted 100
27 3 4 0601.1 286792 283608 Accepted 100
28 3 4 0775.9 387124 383860 Accepted 100
29 3 4 0697.5 291864 288820 Accepted 100
30 4 0466.5 203236 199916 Accepted 100
31 4 0502.2 379572 376024 Accepted 100
32 4 0577.1 354840 350840 Accepted 100
33 4 0495.3 195600 192284 Accepted 100
34 4 0433.9 309184 305808 Accepted 100
35 4 0384.5 227320 224060 Accepted 100
36 4 0760.2 360580 357392 Accepted 100
37 4 0490.1 376768 373048 Accepted 100
38 4 0719.7 320332 317260 Accepted 100
39 4 0669.3 233316 229952 Accepted 100
40 4 0408.0 278968 274860 Accepted 100
41 4 0420.1 306568 302372 Accepted 100
42 4 0322.3 204476 200972 Accepted 100
43 4 0394.8 230716 227224 Accepted 100
44 4 0306.7 234344 231212 Accepted 100
Submitter:
Compiler:
c++17
Code Length:
3.36 KB
Back to Top