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 sparkling at 2007-07-19 12:59:55 on Problem 3260
下面思路有问题吗?
用ip[i]表示支付i元时的最小硬币数,
用如下的递归式:
ip[i + iv] = min{ ip[i + iv], ip[i] + 1}
其中ip[i]存在,并且面值为iv的硬币个数>=1.
AC的朋友,帮忙看看有什么没注意到的。

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