有时要把read、write改成rea、wri
#include<bits/stdc++.h>
using namespace std;
struct rstream{
rstream& operator>>(int &x){
x=0;char c=getchar();
while(!isdigit(c)) c=getchar();
while(isdigit(c)) x=x*10+c-'0',c=getchar();
return *this;
}
}read;
struct wstream {
wstream& operator<<(int x){
if(x<0) putchar('-'),x=-x;
if(x<10){
putchar(x+'0');
return *this;
}
operator<<(x/10);
putchar(x%10+'0');
return *this;
}
wstream& operator<<(char c){
putchar(c);
return *this;
}
}write;
int main(){
int x,y;
read>>x>>y;
write<<x+y<<' '<<x-y;
return 0;
}