考试安排

update:
dev编辑器选项中添加缩进到{}和:
老是不灵,干脆关掉。。

先安装最新版本dev
编译时加入以下命令:
-Wall -Wl,–stack=1000000000 -std=c++11(最后改成03编译!!)
-O2用于打表找规律

字体:Consolas
预设:Obsidian

取消代码补全、符号匹配

开始写模板

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include<bits/stdc++.h>
#include<iostream>
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
#include<set>
#include<map>
#include<bitset>
#define mp make_pair
#define pb push_back
#define fi first
#define se second
#define IL inline
#define filein(s) freopen(s,"r",stdin);
#define fileout(s) freopen(s,"w",stdout);
using namespace std;
typedef long long LL;
typedef unsigned int U;
typedef unsigned long long LLU;
typedef pair<int,int> PII;
typedef long double LD;
IL LL read()
{
LL x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9'){x=(x<<1)+(x<<3)+(ch^48);ch=getchar();}
return x*f;
}
#define io read()
int main()
{
return 0;
}

写完加入到缺省源

然后建文件夹

然后写生成

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include<bits/stdc++.h>
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long LL;
typedef pair<int,int> PII;
timeb tim;
mt19937 mt;
inline int ra()
{
return mt()>>1;//mt()是unsigned int
}
inline LL rall()
{
return (1ll*ra()<<30)+ra();
}
int main()
{
freopen("1.in","w",stdout);
ftime(&tim);
mt.seed(tim.time*1000+tim.millitm);
return 0;
}

然后写duipai.bat(和bf拍)和pai.bat(测极限数据的时间)

duipai.bat

1
2
3
4
5
6
7
8
9
10
@echo off
:loop
sc.exe
A.exe <1.in >my.out
bf.exe <1.in >1.out
fc 1.out my.out
if errorlevel 1 pause
goto loop
pause
end

pai.bat

1
2
3
4
5
6
7
@echo off
:loop
sc.exe
A.exe <1.in >my.out
goto loop
pause
end

最后把东西复制到各个文件夹就行了
多余的时间打打ksm,add_ans,add_edge,(fx treap)