$$ \newcommand{\seq}[2]{{#1}_{1},{#1}_{2},\cdots,{#1}_{#2}} \newcommand{\num}[1]{1,2,\cdots,#1} \newcommand{\stra}[2]{\begin{bmatrix}#1 \\ #2\end{bmatrix}} \newcommand{\strb}[2]{\begin{Bmatrix}#1 \\ #2\end{Bmatrix}} \newcommand{\dw}[1]{\underline{#1}} \newcommand{\up}[1]{\overline{#1}} $$

Optimization

#pragma GCC diagnostic error "-std=c++11"
#pragma GCC optimize("-fdelete-null-pointer-checks,inline-functions-called-once,-funsafe-loop-optimizations,-fexpensive-optimizations,-foptimize-sibling-calls,-ftree-switch-conversion,-finline-small-functions,inline-small-functions,-frerun-cse-after-loop,-fhoist-adjacent-loads,-findirect-inlining,-freorder-functions,no-stack-protector,-fpartial-inlining,-fsched-interblock,-fcse-follow-jumps,-fcse-skip-blocks,-falign-functions,-fstrict-overflow,-fstrict-aliasing,-fschedule-insns2,-ftree-tail-merge,inline-functions,-fschedule-insns,-freorder-blocks,-fwhole-program,-funroll-loops,-fthread-jumps,-fcrossjumping,-fcaller-saves,-fdevirtualize,-falign-labels,-falign-loops,-falign-jumps,unroll-loops,-fsched-spec,-ffast-math,Ofast,inline,-fgcse,-fgcse-lm,-fipa-sra,-ftree-pre,-ftree-vrp,-fpeephole2",3)
#pragma GCC target("avx","sse2")
#include<cstdio>
using namespace std;
const int MAXN=5000000;
inline char gc(){
	static char In[MAXN],*at=In,*en=In;
	return at==en&&(en=(at=In)+fread(In,1,MAXN,stdin)),at==en?EOF:*at++;
}
template<class tp>
void read(tp &x){
	x=0;
	char c=gc();
	bool sgn=0;
	while((c<'0'||c>'9')&&c!='-')c=gc();
	if(c=='-')sgn=1,c=gc();
	while(c>='0'&&c<='9')x=(x<<3)+(x<<1)+(c^'0'),c=gc();
	if(sgn)x=-x;
}
void read(char *str){
	char c=gc();
	while(c==' '||c=='\n'||c=='\r')c=gc();
	while(c!=' '&&c!='\n'&&c!='\r'&&~c)*str++=c,c=gc();
	*str=0;
}
char _In[MAXN],*_at=_In;
inline void flush(){fwrite(_In,1,_at-_In,stdout),_at=_In;}
struct _init{~_init(){flush();}}__init;
inline void pc(char c){if(_at==_In+MAXN)flush();*_at++=c;}
template<class tp>
void write(tp x){
	if(!x){pc('0');return;}
	static char buf[43],*at;
	at=buf;
	if(x<0)pc('-'),x=-x;
	while(x)*at++=x%10+'0',x/=10;
	do pc(*--at); while(at!=buf);
}
void write(const char *str){while(*str)pc(*str++);}
void write(char *str){write((const char*)str);}
int main(){
	int a,b;
	read(a),read(b);
	write(a+b),pc('\n');
	return 0;
}
posted @ 2018-11-02 07:21  chc_1234567890  阅读(496)  评论(0编辑  收藏  举报