码迷,mamicode.com
首页 >  
搜索关键字:buying    ( 115个结果
11181 - Probability|Given
N friends go to the local super market together. The probability of their buying something from themarket is p 1 ,p 2 ,p 3 ,...,p N respectively. Afte...
分类:其他好文   时间:2015-08-21 22:59:20    阅读次数:179
Obtain Diesel engine Designer watches can be bought in the many most up-to-date styles and designs
Your Diesel engine Designer watches and buying Diesel engine Designer watches can be purchased on-line using a number of internet sites as well as fir...
分类:其他好文   时间:2015-07-01 17:43:26    阅读次数:143
UVA 10626--Buying Coke+记忆化搜索+DP
题目链接:点击进入 原来定义状态dp[n][n1][n5][n10]表示购买n瓶可乐后剩余1,5,10分硬币n1,n5,n10个时花费硬币数最小的数量.然后状态转移是:1.8个一分硬币购买第n瓶可乐,t=dp[n-1][n1+8][n5][n10]+8; 2.一个五分和3个1分,t=dp[n-1][n1+3][n5+1][n10]+4; 3.两个5分t=dp[n-1][n1][n5+2][n1...
分类:其他好文   时间:2015-06-15 14:37:04    阅读次数:121
BZOJ 1618: [Usaco2008 Nov]Buying Hay 购买干草( dp )
无限背包dp..因为题目中说至少到 H 磅 , 我就直接把 H * 2 了..--------------------------------------------------------------------------#include#include#include#include#defi...
分类:其他好文   时间:2015-06-06 18:09:18    阅读次数:113
[LeetCode] Best Time to Buy and Sell Stock
Well, there are several observations for this problemThe max profit is at least0(buy and sell on the same day);The profit of buying on dayiand selling...
分类:其他好文   时间:2015-06-03 00:54:48    阅读次数:121
CSU1630: Plane Ticket Pricing
Description Plane ticket prices fluctuate wildly from one week to the next, and their unpredictability is a major source of frustration for travellers. Some travellers regret buying tickets too ear...
分类:其他好文   时间:2015-05-25 14:36:21    阅读次数:165
uva 10626 Buying Coke (DP记忆化搜索)
uva 10626 Buying CokeI often buy Coca-Cola from the vending machine at work. Usually I buy several cokes at once, since my working mates also likes coke. A coke in the vending machine costs 8 Swedish c...
分类:其他好文   时间:2015-05-06 17:55:34    阅读次数:141
BUYING FEED (第三届省赛)
BUYING FEED(英文题!!!! 为那些跟我一样acmer翻译一下吧 是实话 看不懂题真的很烦人 以上都是废话, 下面解释英文题不出意外还是队友写的, 题意是第一行输入 要买的量k 要走的总长度e 店铺的数量n ; 然后就是每家店铺距离起点的距离 存货量 成本 。ps : 将...
分类:其他好文   时间:2015-05-04 19:51:24    阅读次数:128
Uva 11181 Probability|Given(概率dp)
Problem G Probability|Given Input: Standard Input Output: Standard Output   N friends go to the local super market together. The probability of their buying something from the market is respectiv...
分类:其他好文   时间:2015-04-28 09:49:46    阅读次数:145
NYOJ 248 && BNUOJ 4151 BUYING FEED (贪心)
【题目链接】click here~~ 【题目大意】FJ开车去买K份食物,如果他的车上有X份食物。每走一里就花费X元。FJ的城市是一条线,总共E里路,有E+1个地方,标号0~E。FJ从0开始走,到E结束(不能往回走),要买K份食物。城里有N个商店,每个商店的位置是X_i(一个点上可能有多个商店),有F_i份食物,每份C_i元。问到达E并买K份食物的最小花费。 【解题思路】 把每个站点的物品...
分类:其他好文   时间:2015-04-16 14:26:08    阅读次数:141
115条   上一页 1 ... 7 8 9 10 11 12 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!