Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

贴几个数据,注意题目的意思是电话公司免费提供K根电线

Posted by a280920481 at 2018-12-29 01:08:08 on Problem 3662 and last updated at 2018-12-29 01:09:18
Case 1:

3 1 1
1 2 1

Answer:
-1


Case 2:

3 2 2
1 2 1
2 3 1

Answer:
0


Case 3:

8 8 1
1 2 1
2 3 1
3 4 1
4 5 1
5 6 1
6 7 1
7 8 1
1 8 9

Answer:
0


Case 4:

5 7 1
1 2 5
3 1 4
2 4 8
3 2 3
5 2 9
3 4 7
4 5 6

Answer:
4


Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator