问题: 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 co...
分类:
其他好文 时间:
2014-10-12 00:58:36
阅读次数:
686
1.当前系统日期、时间selectgetdate()2.dateadd在向指定日期加上一段时间的基础上,返回新的datetime值例如:向日期加上2天selectdateadd(day,2,'2004-10-15')--返回:2004-10-1700:00:00.0003.datediff返回跨两个...
分类:
数据库 时间:
2014-10-10 18:44:34
阅读次数:
236
First Iwant to talk about my enjoyable travelling holidays of the National Day.It is always happy when you meeting your family members after leaving.....
分类:
其他好文 时间:
2014-10-10 02:45:03
阅读次数:
222
问题: 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 co...
分类:
其他好文 时间:
2014-10-10 00:18:11
阅读次数:
398
过程以保留字procedure开始,没有返回值;函数以保留字function开始,有返回值。参数位于括号里面,多个参数之间以分号分隔,例如:procedure SetDate(Year: Integer; Month: Integer; Day: Integer);也可以将相同类型的参数组合在一起,...
分类:
其他好文 时间:
2014-10-09 14:50:44
阅读次数:
191
publicintCalculateAge(DateTimebirthDate,DateTimenow){intage=now.Year-birthDate.Year;if(now.Month<birthDate.Month||(now.Month==birthDate.Month&&now.Day<birthDate.Day)){age--;}returnage;}
分类:
其他好文 时间:
2014-10-09 03:16:38
阅读次数:
185
SQL Server 中时间比较例子:select count(*) from table whereDATEDIFF ([second], '2004-09-18 00:00:18', '2004-09-18 00:00:19')> 0说明 select DATEDIFF(day, time1 ....
分类:
数据库 时间:
2014-10-09 00:14:57
阅读次数:
237
第一天上班,做个总结。总得来说,感觉非常不错,一个结论~保持头脑清醒,好好加油。今天主要办一些入职手续,拿到了代码,后面几天主要就是熟悉应用的功能、源代码。想好好制定个计划,定日目标。1.功能结构图(先从总体開始):各大模块功能具体解释2.类图:从程序的源头開始绘制类图(以及类之间的关联)3.熟悉当...
分类:
其他好文 时间:
2014-10-08 17:22:05
阅读次数:
177
UVA 11774 - Doom's Day题目链接题意:给定一个3^n*3^m的矩阵,要求每次按行优先取出,按列优先放回,问几次能回复原状思路:没想到怎么推理,找规律答案是(n + m) / gcd(n, m),在topcoder上看到一个证明,例如以下:We can associate at e...
分类:
其他好文 时间:
2014-10-07 14:51:53
阅读次数:
134
/**
* 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
* ...
分类:
其他好文 时间:
2014-10-07 11:10:03
阅读次数:
129