标签:name 模板 turn stdin template pre queue names highlight
//Twenty
#include<algorithm>
#include<iostream>
#include<cstring>
#include<cstdlib>
#include<cstdio>
#include<vector>
#include<cmath>
#include<queue>
typedef long long LL;
using namespace std;
int a,b;
namespace RD {
const int sz=1<<15|1;
char ch,buf[sz],*l,*r;
void gechar(char &c) {
if(l==r) r=(l=buf)+fread(buf,1,sz,stdin);
c = l==r?(char)EOF:*l++;
}
template<typename T> void read(T &x) {
int f=1; x=0; gechar(ch);
while(ch!=‘-‘&&(ch<‘0‘||ch>‘9‘)) gechar(ch);
if(ch==‘-‘) f=-1,gechar(ch);
for(;ch>=‘0‘&&ch<‘9‘;gechar(ch)) x=x*10+ch-‘0‘; x*=f;
}
}
int main()
{
RD::read(a);
RD::read(b);
printf("%d\n",a+b);
return 0;
}
标签:name 模板 turn stdin template pre queue names highlight
原文地址:http://www.cnblogs.com/Achenchen/p/7731628.html