码迷,mamicode.com
首页 >  
搜索关键字:price    ( 2479个结果
cf 12C Fruits(贪心【简单数学】)
题意:m个水果,n个价格。每种水果只有一个价格。问如果给每种水果分配价格,使得买的m个水果总价格最小、最大。输出最小值和最大值。思路:贪心。代码:bool cmp(int a,int b){ return a>b;}string name;map mp;int price[200],fruit...
分类:其他好文   时间:2015-03-03 22:05:22    阅读次数:259
Spring中使用WebService
Server端和Client端的Web工程截图: Server代码: package com.wiseweb.bean; public class Order { private int id ; private String name ; private double price ; public Order() { super(); }...
分类:编程语言   时间:2015-03-03 13:44:34    阅读次数:166
leetcode 【 Best Time to Buy and Sell Stock III 】python 实现
题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet...
分类:编程语言   时间:2015-03-02 00:55:58    阅读次数:237
Leetcode: Best Time to Buy and Sell Stock IV
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 complet...
分类:其他好文   时间:2015-03-01 13:13:19    阅读次数:119
CO11N报 ck466错误
在报工时中,把所有数据都填好后,保存时报错,如下:错误提示的完整内容:CK466 - No price could be determined for internal activity &1 &2 - CK 466DiagnosisThe system could not calculate a ...
分类:其他好文   时间:2015-03-01 08:52:52    阅读次数:361
sql 基础--mysql 5 (10)
17.更新和删除数据更新: update table set columns = ‘value’ where ...mysql> update pw_price set price=10000 where uid=6;Query OK, 1 row affected (0.03 sec)Rows m...
分类:数据库   时间:2015-02-28 15:55:55    阅读次数:193
sql 基础--mysql 5 (9)
16 插入 insert into table values()mysql> insert into pw_price values (5,5000,'cai');Query OK, 1 row affected (0.03 sec)mysql> select * from pw_price;\+-...
分类:数据库   时间:2015-02-28 12:42:52    阅读次数:157
sql 基础--mysql 5 (8)
15.组合查询 unionmysql> select uid,first_name,price from pw_price where uid >2 union select uid,first_name,price from pw_price where price>=1000;+-----+--...
分类:数据库   时间:2015-02-28 11:22:30    阅读次数:173
PAT:1020. 月饼 (25) AC
#include#includeusing namespace std;struct cake{ double amount; double sum_price,price;}M[1010];bool cmp(cake a,cake b){ return a.price>b.price;}in...
分类:其他好文   时间:2015-02-27 20:06:39    阅读次数:148
DataList的使用+分页 (转)
datalist和repeater一样,都是根据自己的需要添加自己的模板,简单例子如下:前台代码如下:?ID:'>Name:'>Price:'>Introduce:'> 当前页:总页数:第一页上一页下一页最后一页后台代码如下:?protected void Page_Load(object send...
分类:其他好文   时间:2015-02-26 14:42:04    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!