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

弱弱地说一下我的贪心思路

Posted by dizem at 2009-08-12 15:05:58 on Problem 1907
思路:先除后减,必然比其他方案性价比高一些。

所以对每个agency,假设先a次除再b次减达到最佳,那么枚举所有可能的a,求出最少的耗费。

有一个小trick,不读题就会栽上去,agency name是一个字符串而不是一个字母。

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