#include #includeusing namespace std;#define N 50010int p[N]; void init(int n){ for(int i=1 ;i#include #include #include #include #include using name....
分类:
其他好文 时间:
2014-08-10 21:18:50
阅读次数:
324
// hnldyhy(303882171) 17:07:57// poj 1703#include int p[200005];void init(int n){ for (int i=1;i#includeusing namespace std;#define N 500001int ...
分类:
其他好文 时间:
2014-08-10 21:17:41
阅读次数:
252
//1480#includeconst int MAX=50010; int p[MAX];int n,m;void init(int k) { for (int i=1; iconst int MAX=50010;int p[MAX];int n,m;void init(int k){fo...
分类:
其他好文 时间:
2014-08-10 21:15:20
阅读次数:
206
启动的配置文件/etc/inittab,修改完配置文件以后 init q立即生效# Default runlevel. The runlevels used by RHS are:# 0 - halt (Do NOT set initdefault to this)# 1 - Single ...
分类:
系统相关 时间:
2014-08-10 18:26:10
阅读次数:
256
未经测试:public class BinaryHeap {
public static final int INIT_CAPACITY = 10;
private int[] mArray;
private int mLength;
public BinaryHeap() {
mArray = new int[INIT_CAPACITY + 1];
mLength = 0;
...
分类:
其他好文 时间:
2014-08-10 15:48:00
阅读次数:
261
顺序线性表:
#include
#include
#include
typedef int ElemType; //声明新类型名
typedef struct List
{
ElemType * elem;
int length;
int maxsize;
}Sqlist;
void Init_Sqlist(Sqlist &L) ...
分类:
其他好文 时间:
2014-08-10 13:10:30
阅读次数:
246
git init 创建repositorygit add readme.txt 添加文件git commit -m "log" 提交到master,添加log内容git status 查看repository状态git diff readme.txt 查看修改内容g...
分类:
其他好文 时间:
2014-08-10 12:57:20
阅读次数:
302
一.控制器的创建1.第一种创建方式 FCViewController *vc = [[FCViewController alloc] init]; 2.第二种创建方式 // 加载UIStoryboard(注意:仅仅是加载名称叫做Test的storyboard, 并不会创建storyboard中的控....
分类:
其他好文 时间:
2014-08-10 12:51:00
阅读次数:
280
删除远程分支 git push origin :branch-name 删除本地分支(先要切换到其他的分支) git branch -D brachname 本地创建分支 并切换到新的分支 git checkout -b ?newBranch 本地创建分支 但不切换到 git branch ?...
分类:
其他好文 时间:
2014-08-10 10:31:00
阅读次数:
201
我要使我的服务程序在重启系统后也随之自动启动。启动我的服务用到了一个脚本。现在有两个方法:法1:sudo vi /etc/init.d/rc.local在这里添加启动服务的脚本命令.这个方法的优点是:此时尚未登录用户,启动服务用的是su。相当于sudo。权限无比大.这个方法的缺陷是:这个时候用户尚未...
分类:
系统相关 时间:
2014-08-10 10:22:20
阅读次数:
319