Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
弱弱地说一下我的贪心思路思路:先除后减,必然比其他方案性价比高一些。 所以对每个agency,假设先a次除再b次减达到最佳,那么枚举所有可能的a,求出最少的耗费。 有一个小trick,不读题就会栽上去,agency name是一个字符串而不是一个字母。 Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator