好久不写了,复习一下,被坑了好多次~~~ 1 type arr=record 2 l,r:longint; 3 lazy,val:int64; 4 end; 5 const maxn=200008; 6 var tree:array[0..maxn*4...
分类:
其他好文 时间:
2015-01-06 21:17:59
阅读次数:
135
1. 格式化对齐:Ctrl+K+F2. 智能感知:Ctrl+J;3. 智能感知显示參数信息:Ctrl+Shift+空格;4. 检查括号匹配(在左右括号间切换): Ctrl +]5. 选中从光标起到行首(尾)间的代码: Shift + Home(End)6. 在方法定义和调用之点切换:Ctrl+Shi...
分类:
其他好文 时间:
2015-01-06 19:43:16
阅读次数:
145
Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example:Given the below binary tree, 1 / \ 2 3...
分类:
其他好文 时间:
2015-01-06 17:38:16
阅读次数:
199
在mysql中,有时候我们需要在生成数据之前先做一些基础判断,这个时候我们可以case then使用简单的判断SELECT CASE sex WHEN 1 THEN '男' WHEN 2 THEN '女' ELSE '无性别' END as content from 表名
分类:
数据库 时间:
2015-01-06 17:20:23
阅读次数:
195
@interface IndEditorDetailViewController ()
{
UIWebView *_webView;
UIProgressView *_progressView;
NJKWebViewProgress *_progressProxy;
}
@end
@implementation IndEditorDetailViewController
...
分类:
移动开发 时间:
2015-01-06 15:39:28
阅读次数:
148
select case when to_char(last_day(add_months(trunc( sysdate ,'y'),1)),'dd') = '28' then '平年' else '闰年' end as isLeapYearfrom dual第一步:取日期...
分类:
数据库 时间:
2015-01-06 13:39:42
阅读次数:
166
--基本结构DECLARE--变量声明部分:在此声明PL/SQL用到的变量,类型,游标,以及局部的存储过程和函数BEGIN --执行部分:过程及SQL语句,即程序的主要部分 EXCEPTION --执行异常部分:异常处理END;--PL/SQL基本规范:全部的保留字,roacle的内置函...
分类:
数据库 时间:
2015-01-06 11:42:34
阅读次数:
285
我们在C语言编程中会遇到一些参数个数可变的函数,例如printf()这个函数,它的定义是这样的:int printf( const char* format, ...);它除了有一个参数format固定以外,后面跟的参数的个数和类型是可变的,例如我们可以有以下不同的调用方法:printf("%d",...
分类:
其他好文 时间:
2015-01-05 23:25:36
阅读次数:
224
// AppDelegate.m#import "AppDelegate.h"#import "ViewController.h"@interface AppDelegate ()@end@implementation AppDelegate- (BOOL)application:(UIApplic...
分类:
移动开发 时间:
2015-01-05 20:26:54
阅读次数:
198
1.匿名fun函数 a.匿名函数与变量绑定? ? ? 我们一般看到的是将一个匿名的函数赋值给一个变量:相当于这个变量就是以后的函数名。 ? ? 后面就将这个变量当作函数名用即可。例如: Double=fun(X)->2*x?end.
...
分类:
其他好文 时间:
2015-01-04 15:28:42
阅读次数:
435