跳到正文

剪贴板

剪贴板 x3415sij

原文
剪贴板信息

剪贴板信息

收录
更新

快读

C++
#include<cstdio>
#include<cstring>
#include<string>
struct FastIO{
	static const int IOSIZE = 65536;
	char in[IOSIZE],*p,*pp,out[IOSIZE],*q,*qq,ch[20],*t,b;
	FastIO():p(in),pp(in),q(out),qq(out+IOSIZE),t(ch),b(1){}
	~FastIO(){fwrite(out,1,q-out,stdout);}
	inline char getch(){
		return p==pp&&(pp=(p=in)+fread(in,1,IOSIZE,stdin),p==pp)?b=0,EOF:*p++;
	}
	inline void putch(char x){
		q==qq&&(fwrite(out,1,q-out,stdout),q=out),*q++=x;
	}
	inline void puts(const char str[]){fwrite(out,1,q-out,stdout),fwrite(str,1,strlen(str),stdout),q=out;}
	inline void getline(std::string& s){
		s="";
		for(char ch;(ch=getch())!='\n'&&b;)s+=ch;
	}
	#define indef(T) inline FastIO& operator>>(T& x){\
		x=0;char f=0,ch;\
		while(!isdigit(ch=getch())&&b)f|=ch=='-';\
		while(isdigit(ch))x=(x<<1)+(x<<3)+(ch^48),ch=getch();\
		return x=f?-x:x,*this;\
	}
	indef(int)
	indef(long long)
	#undef indef
	inline FastIO& operator>>(char& ch){return ch=getch(),*this;}
	inline FastIO& operator>>(std::string& s){
		s="";char ch;
		while(isspace(ch=getch())&&b);
		while(!isspace(ch)&&b)s+=ch,ch=getch();
		return *this;
	}
	#define outdef(_T) inline FastIO& operator<<(_T x){\
		(!x)&&(putch('0'),0),x<0&&(putch('-'),(x=-x));\
		while(x)*t++=x%10+48,x/=10;\
		while(t!=ch)putch(*--t);\
		return *this;\
	}
	outdef(int)
	outdef(long long)
	#undef outdef
	inline FastIO& operator<<(char ch){return putch(ch),*this;}
	inline FastIO& operator<<(const char str[]){return puts(str),*this;}
	inline FastIO& operator<<(const std::string& s){return puts(s.c_str()),*this;}
	inline operator bool(){return b;}
}io;

int main(){
	int a, b;
    io>>a>>b;
    io<<a+b<<'\n';
	return 0;
}