码迷,mamicode.com
首页 >  
搜索关键字:price    ( 2479个结果
HDU1300DP
/* HDU1300 DP 特定n饰品种类 每个饰品的两个数据。amount[i]代表数量。price[i]代表单位价格 购买珠宝时要满足下面购买规则: 单独买:每种珠宝要加上数量10 合并买:能够把连续几种珠宝数量合并,再加上10,单位价格依照price最大的计算 求出购买全部的珠宝最少要花费.....
分类:其他好文   时间:2015-07-06 21:29:04    阅读次数:130
uva 10499 The Land of Justice
In the Land of Justice the selling price of everything is fixed all over the country. Nobody can buy a thing and sell it in double price. But, that created problems for the businessmen. They left their...
分类:其他好文   时间:2015-07-06 14:20:50    阅读次数:121
IOS开发之----四舍五入问题
方法一:   -(NSString *)notRounding:(float)price afterPoint:(int)position{     NSDecimalNumberHandler* roundingBehavior = [NSDecimalNumberHandler decimalNumberHandlerWithRoundingMode:NSRoundDown ...
分类:移动开发   时间:2015-07-03 15:53:41    阅读次数:139
JSON.Net使用总结
前端时间一直用JSON.Net 现在总结一下1. 用[JsonIgnore]来忽略类中不序列化的属性public class Product{ public string Name { get; set; } public decimal Price { get; set; } [JsonIgnor...
分类:Web程序   时间:2015-07-03 15:32:50    阅读次数:191
LeetCode Best Time to Buy and Sell Stock I II III
Best Time to Buy and Sell Stock  Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, b...
分类:其他好文   时间:2015-07-02 12:05:18    阅读次数:86
底价优化
RTB中引入了修改后的Second-Price竞价模型,竞价成功的广告不需要向Ad-Exchange付他的出价,而只会付第二名的出价。Second-Price的理论思想是这样的:假设我在卖莫奈的油画。有许多人想竞得这幅油画,每个人心里都有一个最高出价,但问题是他不想付比能竞得这幅画的出价多一分钱。那...
分类:其他好文   时间:2015-07-01 11:33:52    阅读次数:111
后台特殊字符处理,ajax
Dictionary d = new Dictionary(); d.Add("price", price); d.Add("note", note); d.Add("num", bu...
分类:Web程序   时间:2015-06-30 19:59:13    阅读次数:119
Best Time to Buy and Sell Stock
问题描述: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the sto...
分类:其他好文   时间:2015-06-30 10:42:30    阅读次数:121
Best Time to Buy and Sell Stock
1. 题目:Best Time to Buy and Sell Stock Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie...
分类:其他好文   时间:2015-06-30 10:39:53    阅读次数:125
LeetCode122:Best Time to Buy and Sell Stock II
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one and...
分类:其他好文   时间:2015-06-30 10:32:15    阅读次数:120
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!