1719 測資加強 已 rejudge
TopCoder
Caido
$\mathbb{W}\mathcal{aimai}\sim$
Tags
Sample Input 1
5 1 3 2
1 2
2 3
2 4
5 2
1 5 5
2 2
1 2 3
2 4
1 5 5
Sample Output 1
10
2
5
Sample Input 2
4 1 2 0
1 2
1 4
2 3
1 2 3
1 3 4
Subtasks
No. |
Testdata Range |
Constraints |
Score |
1 |
0~1 |
範例測資。 |
0 |
2 |
2~14 |
$n \le 100, x \le 1000$ |
17 |
3 |
15~24 |
只有一條航線會停靠米粉島,且其餘島嶼聚落至多只有兩條航線會停靠 |
36 |
4 |
25~36 |
無額外限制。 |
47 |
Testdata and Limits
No. |
Time Limit (ms) |
Memory Limit (VSS, KiB) |
Output Limit (KiB) |
Subtasks |
0 |
1000 |
1048576 |
65536 |
1
|
1 |
1000 |
1048576 |
65536 |
1
|
2 |
1000 |
1048576 |
65536 |
2
|
3 |
1000 |
1048576 |
65536 |
2
|
4 |
1000 |
1048576 |
65536 |
2
|
5 |
1000 |
1048576 |
65536 |
2
|
6 |
1000 |
1048576 |
65536 |
2
|
7 |
1000 |
1048576 |
65536 |
2
|
8 |
1000 |
1048576 |
65536 |
2
|
9 |
1000 |
1048576 |
65536 |
2
|
10 |
1000 |
1048576 |
65536 |
2
|
11 |
1000 |
1048576 |
65536 |
2
|
12 |
1000 |
1048576 |
65536 |
2
|
13 |
1000 |
1048576 |
65536 |
2
|
14 |
1000 |
1048576 |
65536 |
2
|
15 |
1000 |
1048576 |
65536 |
3
|
16 |
1000 |
1048576 |
65536 |
3
|
17 |
1000 |
1048576 |
65536 |
3
|
18 |
1000 |
1048576 |
65536 |
3
|
19 |
1000 |
1048576 |
65536 |
3
|
20 |
1000 |
1048576 |
65536 |
3
|
21 |
1000 |
1048576 |
65536 |
3
|
22 |
1000 |
1048576 |
65536 |
3
|
23 |
1000 |
1048576 |
65536 |
3
|
24 |
1000 |
1048576 |
65536 |
3
|
25 |
1000 |
1048576 |
65536 |
4
|
26 |
1000 |
1048576 |
65536 |
4
|
27 |
1000 |
1048576 |
65536 |
4
|
28 |
1000 |
1048576 |
65536 |
4
|
29 |
1000 |
1048576 |
65536 |
4
|
30 |
1000 |
1048576 |
65536 |
4
|
31 |
1000 |
1048576 |
65536 |
4
|
32 |
1000 |
1048576 |
65536 |
4
|
33 |
1000 |
1048576 |
65536 |
4
|
34 |
1000 |
1048576 |
65536 |
4
|
35 |
1000 |
1048576 |
65536 |
4
|
36 |
1000 |
1048576 |
65536 |
4
|