sing names.txt (right click and 'Save Link/Target As...'), a 46K text file containing over five-thousand first names, begin by sorting it into alphabetical order. Then working out the
alphabetical v...
分类:
其他好文 时间:
2014-06-20 10:37:22
阅读次数:
230
这一章相对简单,只对运算符进行简单的举例讲解。
基本运算包括:
一、赋值(=)
例如:
let b = 10
var a = 5
a = b
// a is now equal to 10
二、算法(+ - * /)
例如:
1 +2 // equals 3
5 -3 // equals 2
2 *3 // equals 6
10....
分类:
其他好文 时间:
2014-06-20 09:51:38
阅读次数:
237
转自
http://blog.csdn.net/yysyangyangyangshan/article/details/6782874最近做ASP.NET的一个项目,获取时间的时候,由于我的系统时间设置了上午和下午,结果DateTime.Now老是写不到数据库中,然后,上网查了个[csharp]v....
分类:
其他好文 时间:
2014-06-13 14:27:33
阅读次数:
347
//发送通知UILocalNotification*notification=[[UILocalNotificationalloc]init];if(notification!=nil){NSDate*now=[NSDatenew];notification.fireDate=[nowdateByA...
分类:
移动开发 时间:
2014-06-11 22:49:44
阅读次数:
373
内容来源:http://hi.baidu.com/begin/item/df02bd79ca8cc0710d0a078a按需加载js的研究和实现加载js的基本原理,就是在DOM里面加载元素,加载这些元素都是异步的过程。所以可以说是无阻塞的加载。但是如果脚本之间存在依赖的话,就会出现不可预知的错误。根...
分类:
Web程序 时间:
2014-06-11 12:11:43
阅读次数:
326
又2b了一次…… 1 var s:ansistring; 2
ans,pre:array[0..10000] of longint; 3 i,k,tot:longint; 4 procedure main; 5 begin
6 pre[1]:=0;k:=0; 7 for i:=...
分类:
其他好文 时间:
2014-06-11 08:42:01
阅读次数:
211
脑残wa了一次 1 var s:ansistring; 2
ans,i,k,m:longint; 3 pre:array[0..1010000] of longint; 4 function
max(x,y:longint):longint; 5 begin 6 if x>...
分类:
其他好文 时间:
2014-06-11 08:30:14
阅读次数:
179
图G是欧拉图,即存在欧拉回路的条件:1.图是联通的2.对于无向图,奇度数点个数为0。对于有向图,每个顶点出度等于入度。欧拉回路算法模板(链式前向星和DFS实现):int
ans[N];int k = 0;int vis[2*M];void DFS(int now){ for(int u=fir...
分类:
其他好文 时间:
2014-06-08 05:59:56
阅读次数:
260
Follow up for "Unique Paths":Now consider if
some obstacles are added to the grids. How many unique paths would there be?An
obstacle and empty space i...
分类:
其他好文 时间:
2014-06-08 00:33:42
阅读次数:
339
最近看c++primer第四版的标准容器vector,讲到对vector容器的插入删除元素会使得end()的迭代器失效的问题,所以不建议程序员对end()的存储。
vector vec;
vector::iterator first=vec.begin();
while(first!=vec.end())
{
first=vec.insert(first,12);
first...
分类:
编程语言 时间:
2014-06-07 13:04:13
阅读次数:
230