题目传送门 1 /* 2 构造:从大到小构造,每一次都把最后不是9的变为9,p - p MOD 10^k - 1,直到小于最小值。 3 另外,最多len-1次循环 4 */ 5 #include 6 #include 7 #include 8 #include 9 us...
分类:
Web程序 时间:
2015-07-20 15:59:21
阅读次数:
128
第5课 高级数据过滤5.1 组合 WHERE 子句 第4课介绍的 WHERE 子句在过滤数据时都是用单一的条件。5.1.1 AND 操作符 检索由供应商 DLL01 制造且价格小于等于 4 美元的所有产品的名称和价格:SELECT prod_id, prod_price, prod_nameFR.....
分类:
数据库 时间:
2015-07-18 21:18:38
阅读次数:
250
--创建mydb数据库create database mydbgo--使用数据库use mydbgo--水果表create table Fruit( Ids varchar(50) primary key, [Name] varchar(50) not null, Price de...
分类:
数据库 时间:
2015-07-18 15:22:52
阅读次数:
209
一、数学函数select degree ,sqrt(degree) from score --开平方,平方根select price, ceiling(Price) from car -- 取大于当前小数的最小整数select price, floor(Price) from car -- 取小于当...
分类:
数据库 时间:
2015-07-18 12:29:32
阅读次数:
187
一、基本查询:select * from Fruit --查所有select Name,Source from Fruit --查特定列select Ids '代号',Name '名称',Price '价格',Source '产地' from Fruit -- 修改列名select * from F...
分类:
数据库 时间:
2015-07-18 12:18:47
阅读次数:
197
一、增C:create 增加,创建,向数据库里面添加数据。insert into Fruit values('K009','苹果',3.0,'高青',90,'')insert into Fruit(Ids,Name,Price,Source,Numbers) values('K010','苹果',3...
分类:
数据库 时间:
2015-07-17 22:35:11
阅读次数:
143
淘宝旅行通用日历组件:http://fgm.cc/learn/calendar/trip-calendar/api.html酒店价格日历:http://fgm.cc/learn/calendar/price-calendar/api.html弹出层:http://aui.github.com/art...
分类:
Web程序 时间:
2015-07-17 11:16:47
阅读次数:
133
【称号】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 comple...
分类:
其他好文 时间:
2015-07-17 09:37:45
阅读次数:
115
use mydb--增insert into Fruit(Ids,Name,Price) values('k008','榴莲',9.9)--增加时 主键不能为空,其他项系统默认为 NULLinsert into Fruit values('k009','甜瓜',4.8,'淄博',80,'image/...
分类:
数据库 时间:
2015-07-16 23:55:39
阅读次数:
227