码迷,mamicode.com
首页 >  
搜索关键字:coins    ( 511个结果
[leetcode-322-Coin Change]
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee ...
分类:其他好文   时间:2017-06-25 10:07:16    阅读次数:111
UVA 10306 e-Coins(全然背包: 二维限制条件)
UVA 10306 e-Coins(全然背包: 二维限制条件) http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1247 题意: 对于每一个例子。先给定两个数 ...
分类:其他好文   时间:2017-06-23 22:14:23    阅读次数:143
HDU 2844 Coins (多重背包计数 空间换时间)
Coins Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8999 Accepted Submission(s): 3623 Problem ...
分类:其他好文   时间:2017-06-17 17:11:56    阅读次数:149
[POJ2096]Collecting Bugs
Description Ivan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he collects software bugs. When Iv ...
分类:其他好文   时间:2017-06-12 16:19:29    阅读次数:180
[LintCode] Coins in a Line II
There are n coins with different value in a line. Two players take turns to take one or two coins from left side until there are no more coins left. T ...
分类:其他好文   时间:2017-06-03 09:50:40    阅读次数:232
USACO money packageDP
裸0/1背包,就是从各种币种里面拿来凑足N元,求最多有多种方案。用dp[i][j]表示选前i个币种凑成j的方案数量 状态转移方程: dp[i][j] = dp[i- 1][j] j < coins[i] dp[i][j] = dp[i-1][j] + dp[i-1][j-coins[i]] j >= ...
分类:其他好文   时间:2017-05-20 14:57:30    阅读次数:125
1048. Find Coins (25)
题目例如以下: Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall w ...
分类:其他好文   时间:2017-05-16 20:07:11    阅读次数:162
XTU 1233 Coins(DP)
题意: n个硬币摆成一排,问有连续m个正面朝上的硬币的序列种数。 很明显的DP题。定义状态dp[i][1]表示前i个硬币满足条件的序列种数。dp[i][0]表示前i个硬币不满足条件的序列种数。 那么显然有dp[i][1]=dp[i-1][1]*2+dp[i-1-m][0]. 如果前i-1个硬币满足条 ...
分类:其他好文   时间:2017-05-13 01:01:58    阅读次数:142
Coin Change
You are given coins of different denominations and a total amount of money amount. Write a function to compute the fewest number of coins that you nee ...
分类:其他好文   时间:2017-05-10 15:37:22    阅读次数:133
背包系列练习( hdu 2844 Coins && hdu 2159 && poj 1170 Shopping Offers && hdu 3092 Least common multiple && poj 1015 Jury Compromise)
作为一个oier,以及大学acm党背包是必不可少的一部分。好久没做背包类动规了。久违地练习下-。- dd__engi的背包九讲:http://love-oriented.com/pack/ 鸣谢http://blog.csdn.net/eagle_or_snail/article/details/5 ...
分类:其他好文   时间:2017-05-06 16:34:19    阅读次数:161
511条   上一页 1 ... 19 20 21 22 23 ... 52 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!