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

1012的弱化版

Posted by 1guangnian at 2011-03-18 21:01:54 on Problem 2244
由于先把1cut了,目标城市2就变成了1,可以推出下一个被cut的城市的编号next,如果next==1且被cut的城市数小于n-1,则枚举的m不合要求,每次cut一个城市后,总数量减1

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