【模板】快读快输。

这个东西没有什么好说的,自己看两眼就懂了。

实在看不懂的就背过算了。

#include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<cmath>
#include<cctype>
#define rg register
#define int long long
using namespace std;
inline int read(){
	rg int s=0,f=0;
	rg char ch=getchar();
	while(!isdigit(ch)) f|=(ch=='-'),ch=getchar();
	while(isdigit(ch)) s=(s<<1)+(s<<3)+(ch^48),ch=getchar();
	return f?-s:s;
}
inline void write(int x){
    if(x<0) putchar('-'),x=-x;
    if(x>9) write(x/10);
    putchar(x%10+'0');
}
int a,b,c;
signed main(){
	a=read(),b=read();
	c=a+b;
	write(c);
	return 0;
}
posted @ 2018-12-06 23:57  Sinyess  阅读(817)  评论(0编辑  收藏  举报