码迷,mamicode.com
首页 >  
搜索关键字:coins    ( 511个结果
POJ 3210 : Coins
参考: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
ACM-ICPC 2017 Asia Urumqi:A. Coins(DP) 组合数学
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
ACM-ICPC 2017 Asia Urumqi(第八场)
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
CodeForces - 1003D
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
HDU 2069 Coin Change
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
[LintCode] 395. Coins in a Line 2_Medium tag: Dynamic Programming, 博弈
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
[LintCode] 394. Coins in a Line_ Medium tag:Dynamic Programming_博弈
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
CF1003D Coins and Queries 贪心
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
POJ1742 coins 动态规划之多重部分和问题
题目大意:tony现在有n种硬币,第i种硬币的面值为A[i],数量为C[i]。现在tony要使用这些硬币去买一块价格不超过m的表。他希望买的时候不用找零,问有多少种价格能满足这一点。 这个问题实际上是一个多重部分和的问题:假设有n种物品,每种物品的价值为v[i],数量为c[i],随意选取这些物品,能... ...
分类:其他好文   时间:2018-07-13 20:45:44    阅读次数:158
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 ...
分类:其他好文   时间:2018-07-07 12:36:14    阅读次数:156
511条   上一页 1 ... 11 12 13 14 15 ... 52 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!