Toggle navigation
Bulletin
Problems
Submissions
Contests
Discuss
About
Rank
Sign in
Sign up
×
Close
2022 全國模擬賽題目上線啦 !!!!!
題目在
這裡
~
2023 全國模擬賽題目上線啦 !!!!!
題目在
這裡
~
2024 全國模擬賽題目上線啦 !!!!!
題目在
這裡
~
2224 . B. 村莊與小徑
Submit
Status
Discussion / Solution
Ranklist
Back to Problems List
TopCoder
腦子裝咖哩
想像不出自己 AC 的題目是實作不出來的!雖然想像得出來也不一定可以就是了
User's AC Ratio
92.1% (
93/101
)
Submission's AC Ratio
35.3% (
112
/
317
)
Tags
Show solution-related tags
全國賽
2020-全國賽
nhspc109
Description
題目 PDF 檔在這裡
Input Format
Output Format
Sample Input 1
copy
4 4
1 2 10
2 4 50
1 3 30
3 4 20
Sample Output 1
copy
90
Sample Input 2
copy
5 6
1 3 10
3 4 0
1 5 30
5 4 10
3 2 10
3 4 40
Sample Output 2
copy
70
Hints
Problem Source
109 學年度全國資訊學科能力競賽
Subtasks
No.
Testdata Range
Constraints
Score
1
0~1
範例測資。
0
2
2~10
$n \le 100$ 且 $m \le 1000$。
32
3
11~30
無額外限制。
68
Testdata and Limits
No.
Time Limit (ms)
Memory Limit (VSS, KiB)
Output Limit (KiB)
Subtasks
0
1000
131072
65536
1
1
1000
131072
65536
1
2
1000
131072
65536
2
3
1000
131072
65536
2
4
1000
131072
65536
2
5
1000
131072
65536
2
6
1000
131072
65536
2
7
1000
131072
65536
2
8
1000
131072
65536
2
9
1000
131072
65536
2
10
1000
131072
65536
2
11
1000
131072
65536
3
12
1000
131072
65536
3
13
1000
131072
65536
3
14
1000
131072
65536
3
15
1000
131072
65536
3
16
1000
131072
65536
3
17
1000
131072
65536
3
18
1000
131072
65536
3
19
1000
131072
65536
3
20
1000
131072
65536
3
21
1000
131072
65536
3
22
1000
131072
65536
3
23
1000
131072
65536
3
24
1000
131072
65536
3
25
1000
131072
65536
3
26
1000
131072
65536
3
27
1000
131072
65536
3
28
1000
131072
65536
3
29
1000
131072
65536
3
30
1000
131072
65536
3
Submit
Back to Top