丐丐版快读:
#include<bits/stdc++.h>
using namespace std;
namespace Fast_IO{int sout[20],tot;
inline int read(int& x){x=0;char c=getchar();while(c<'0'||c>'9'){c=getchar();}
while(c>='0'&&c<='9'){x=(x<<3)+(x<<1)+c-'0';c=getchar();}}
inline void write(int x){while(x){sout[++tot]=char(x%10+48);x/=10;}
while(tot){putchar(sout[tot--]);}}}using namespace Fast_IO;
int main(){
int n,m;
read(n);
read(m);
write(n+m);
}丐版快读:
#include<bits/stdc++.h>
#define int long long
using namespace std;
namespace Fast_IO{char sin[(1<<5)],sout[30];char *is=sin,*it=sin;
inline char getch(){if(is==it) it=(is=sin)+fread(sin,1,(1<<5),stdin);return is==it?EOF:*is++;}
inline void read(int& x){int y=0;x=0;char c=getch();while(!isdigit(c)){y|=(c=='-'),c=getch();}
while(isdigit(c)){x=(x<<3)+(x<<1)+c-'0',c=getch();}x=y?-x:x;}
inline void write(int x){int tot=0;if(x<0){x=-x;putchar('-');}if(x==0){putchar('0');return;}
while(x){sout[++tot]=char(x%10+48);x/=10;}while(tot){putchar(sout[tot--]);}}
}using namespace Fast_IO;
signed main(){
int n,m;
read(n);
read(m);
write(n+m);
}#include<bits/stdc++.h>
#define cin IO::fin
#define cout IO::fout
#define ff/*faster inline function*/ inline
using namespace std;
const int N=1e6+10;
namespace IO{
const int Msize=1<<20;char ibuf[Msize],*is=ibuf,*it=ibuf;char tmp[Msize];int cnt=0;
ff void flush(){fwrite(tmp,1,cnt,stdout);cnt=0;}
ff char getch(){if(is==it) it=(is=ibuf)+fread(ibuf,1,Msize,stdin);return is==it?EOF:*is++;}
ff int readInt(){int x=0,y=0;char c=0;while(!isdigit(c)) y|=c=='-',c=getch();while(isdigit(c)) x=(x<<3)+(x<<1)+(c^48),c=getch();return !y?x:-x;}
ff char readChar(){char c;while(true){c=getch();if(c!=' '&&c!='\n'&&c!='\r') break;}return c;}
ff string readString(){char c;string s="";while(true){c=getch();if(c!=' '&&c!='\n'&&c!='\r') break;}while(c!=' '&&c!='\n'&&c!='\r') s+=c,c=getch();return s;}
ff void putch(char c){tmp[cnt++]=c;if(cnt==Msize)flush();}
ff void putInt(int x){char sout[20];int top=0;if(x<0) putch('-'),x=-x;if(x==0) putch('0');while(x) sout[++top]=(x%10+'0'),x/=10;while(top) putch(sout[top--]);}
ff void putChar(char c){putch(c);}
ff void putString(string s){for(int i=0;i<s.size();i++){putch(s[i]);}}
struct Basic{
Basic &operator>>(int &A){A=IO::readInt();return (*this);}
Basic &operator>>(char &A){A=IO::readChar();return (*this);}
Basic &operator>>(string& A){A=IO::readString();return (*this);}
Basic &operator<<(const int &A){putInt(A);return (*this);}
Basic &operator<<(const char &A){putChar(A);return (*this);}
Basic &operator<<(const string& A){putString(A);return (*this);}
void Flush(){flush();}
~Basic(){flush();}
}fin,fout;
}
int main(){
int a,b,c,d;
cin>>a>>b;
cout<<a<<" "<<b<<endl;
cin>>c>>d;
cout<<c+d<<endl;
return 0;
}