编程新姿势

1.

while (t--)
{

}

2.

void DFS(long l,long r,long L,long R)
{

}

void dfs()
{
}

 3.

const long maxn=3e5+5; //没有const不行
#define mod 1e9+7

long a[maxn];

%mod

4.把模板放置于txt中,每当写一道新的题,拷贝txt的代码

5.DEV的调试有严重的bug。遇到endl就会卡住,改成' '就好了。(from website)

原文地址:https://www.cnblogs.com/cmyg/p/8735022.html