码迷,mamicode.com
首页 >  
搜索关键字:coins    ( 511个结果
leetcode441
https://leetcode.com/problems/arranging-coins/#/description ...
分类:其他好文   时间:2017-04-21 22:31:44    阅读次数:112
【Leetcode441--数学】Arranging Coins
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, find the total number ...
分类:其他好文   时间:2017-04-14 16:34:46    阅读次数:201
POJ3682 King Arthur's Birthday Celebration
King Arthur is an narcissist who intends to spare no coins to celebrate his coming K-th birthday. The luxurious celebration will start on his birthday ...
分类:其他好文   时间:2017-04-14 00:10:06    阅读次数:219
Collecting Bugs (概率dp)
Ivan is fond of collecting. Unlike other people who collect post stamps, coins or other material stuff, he collects software bugs. When Ivan gets a ne ...
分类:其他好文   时间:2017-04-12 18:49:50    阅读次数:227
leetcode-441. Arranging Coins
441. Arranging Coins You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins. Given n, ...
分类:其他好文   时间:2017-03-19 17:33:19    阅读次数:231
poj1742 Coins
思路: 多重背包变形。 楼天城男人八题的第六题。 http://www.cnblogs.com/dramstadt/p/3439725.html 实现: ...
分类:其他好文   时间:2017-03-18 23:38:44    阅读次数:270
【HAOI2008】硬币购物
没有吐槽…… 原题:一共有4种硬币,面值分别为c1,c2,c3,c4. 阿Q带着一些硬币去商店买东西,他带了d1枚第一种硬币,d2枚第二种硬币,d3枚第三种硬币,d4枚第四种硬币,若想买一个价值为s的东西,问阿Q有多少种付coins的方法.比如c={1,2,5,10},d={3,2,3,1},s=1 ...
分类:其他好文   时间:2017-03-05 19:18:42    阅读次数:157
HDU3579 线性同余方程(模板 余数不一定互质)
Hello Kiki Problem Description One day I was shopping in the supermarket. There was a cashier counting coins seriously when a little kid running and s ...
分类:其他好文   时间:2017-03-05 19:07:14    阅读次数:191
441. 硬币楼梯 Arranging Coins
You have a total of n coins that you want to form in a staircase shape, where every k-th row must have exactly k coins.Given n, find the total number ... ...
分类:其他好文   时间:2017-02-28 00:35:52    阅读次数:201
POJ-3260 The Fewest Coins
题目链接:POJ-3260 题意是一个人买东西,有n种纸币,面额为v[i],数量为c[i]。同时售货员也有这些纸币,数量为无限。要买价值为t的东西,希望给“钱用的纸币数和着钱用的纸币数的和”最少。 思路很显然是完全背包和多重背包各处理售货员和这位老哥。这个题给出所有v[i]<=120,这一点很有迷惑 ...
分类:其他好文   时间:2017-02-11 18:03:24    阅读次数:205
511条   上一页 1 ... 20 21 22 23 24 ... 52 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!