参考:https://blog.csdn.net/u010885899/article/details/46636523 http://kqwd.blog.163.com/blog/static/4122344820091041127552/ https://blog.csdn.net/nanche ...
分类:
其他好文 时间:
2018-07-31 21:36:33
阅读次数:
103
Alice and Bob are playing a simple game. They line up a row of nn identical coins, all with the heads facing down onto the table and the tails upward. ...
分类:
其他好文 时间:
2018-07-29 22:32:20
阅读次数:
463
A. Coins Alice and Bob are playing a simple game. They line up a row of nnn identical coins, all with the heads facing down onto the table and the tai ...
分类:
其他好文 时间:
2018-07-29 20:05:44
阅读次数:
289
Polycarp has nn coins, the value of the ii-th coin is aiai. It is guaranteed that all the values are integer powers of 22 (i.e. ai=2dai=2d for some no ...
分类:
其他好文 时间:
2018-07-29 17:01:18
阅读次数:
169
http://acm.hdu.edu.cn/showproblem.php?pid=2069 Problem Description Suppose there are 5 types of coins: 50-cent, 25-cent, 10-cent, 5-cent, and 1-cent. ...
分类:
其他好文 时间:
2018-07-28 00:17:54
阅读次数:
193
Description 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 c ...
分类:
其他好文 时间:
2018-07-26 01:07:24
阅读次数:
198
Description There are n coins in a line. Two players take turns to take one or two coins from right side until there are no more coins left. The playe ...
分类:
其他好文 时间:
2018-07-25 23:53:58
阅读次数:
220
Coins and Queries time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Coins and Queries time ...
分类:
其他好文 时间:
2018-07-15 16:15:14
阅读次数:
317
题目大意:tony现在有n种硬币,第i种硬币的面值为A[i],数量为C[i]。现在tony要使用这些硬币去买一块价格不超过m的表。他希望买的时候不用找零,问有多少种价格能满足这一点。 这个问题实际上是一个多重部分和的问题:假设有n种物品,每种物品的价值为v[i],数量为c[i],随意选取这些物品,能... ...
分类:
其他好文 时间:
2018-07-13 20:45:44
阅读次数:
158
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 ...
分类:
其他好文 时间:
2018-07-07 12:36:14
阅读次数:
156