头文件模板【暂用
2016-03-10 21:57
295 查看
还不完善
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstdlib>
#include<cmath>
#include<cstring>
#include<iomanip>
#include<bitset>
#include<queue>
#define LL long long
#define get(a,i) a&(1<<(i-1))
#define PAU putchar(' ')
#define ENT putchar('\n')
#define clr(a,b) memset(a,b,sizeof(a))
#define fo(_i,_a,_b) for (int _i=_a;_i<=_b;_i++)
#define down(_i,_a,_b) for (int _i=_a;_i>=_b;_i--)
#define efo(_i,_a) for (int _i=last[_a];_i!=0;_i=e[_i].next)
#define file(x) freopen(#x".in","r",stdin),freopen(#x".out","w",stdout);
#define end system("pause")
using namespace std;
LL read()
{
LL f=1,d=0;char s=getchar();
while (s<'0'||s>'9'){if (s=='-') f=-1;s=getchar();}
while (s>='0'&&s<='9'){d=d*10+s-'0';s=getchar();}
return f*d;
}
LL readln()
{
LL f=1,d=0;char s=getchar();
while (s<'0'||s>'9'){if (s=='-') f=-1;s=getchar();}
while (s>='0'&&s<='9'){d=d*10+s-'0';s=getchar();}
while (s!='\n') s=getchar();
return f*d;
}
inline void write(LL x)
{
if(x==0){putchar('0');return;}if(x<0)putchar('-'),x=-x;
int len=0,buf[20];while(x)buf[len++]=x%10,x/=10;
for(int i=len-1;i>=0;i--)putchar(buf[i]+'0');return;
}
inline void writeln(LL x){write(x);ENT;}
#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstdlib>
#include<cmath>
#include<cstring>
#include<iomanip>
#include<bitset>
#include<queue>
#define LL long long
#define get(a,i) a&(1<<(i-1))
#define PAU putchar(' ')
#define ENT putchar('\n')
#define clr(a,b) memset(a,b,sizeof(a))
#define fo(_i,_a,_b) for (int _i=_a;_i<=_b;_i++)
#define down(_i,_a,_b) for (int _i=_a;_i>=_b;_i--)
#define efo(_i,_a) for (int _i=last[_a];_i!=0;_i=e[_i].next)
#define file(x) freopen(#x".in","r",stdin),freopen(#x".out","w",stdout);
#define end system("pause")
using namespace std;
LL read()
{
LL f=1,d=0;char s=getchar();
while (s<'0'||s>'9'){if (s=='-') f=-1;s=getchar();}
while (s>='0'&&s<='9'){d=d*10+s-'0';s=getchar();}
return f*d;
}
LL readln()
{
LL f=1,d=0;char s=getchar();
while (s<'0'||s>'9'){if (s=='-') f=-1;s=getchar();}
while (s>='0'&&s<='9'){d=d*10+s-'0';s=getchar();}
while (s!='\n') s=getchar();
return f*d;
}
inline void write(LL x)
{
if(x==0){putchar('0');return;}if(x<0)putchar('-'),x=-x;
int len=0,buf[20];while(x)buf[len++]=x%10,x/=10;
for(int i=len-1;i>=0;i--)putchar(buf[i]+'0');return;
}
inline void writeln(LL x){write(x);ENT;}
相关文章推荐
- python学习导航
- UVA 11136(p245)----Hoax or what
- challenge(五)内容-ListView使用
- java基础学习之--XML
- Linux内核分析实验三
- Android的Fragment中onActivityResult不被调用的解决方案
- 自定义控键
- Matlab Robotic Toolbox学习
- 算法导论学习笔记(一)排序算法之堆排序
- Linux内核分析3:跟踪分析Linux内核的启动过程
- 数据结构与算法之初识红黑树
- "SQLServer复制需要有实际的服务器名称才能连接到服务器,请指定实际的服务器名"
- homework2
- #面试java基础总结大全#多线程
- linux内核之chdir分析
- 函数调用约定
- 二叉树的后续遍历
- ZOJ 3328 Wu Xing
- 读《it小小鸟》有感
- (初级)并发服务器之子进程