Pagini recente » Rating Popa Miruna (Mirunici) | Cod sursa (job #1299304) | Cod sursa (job #1783522) | Cod sursa (job #366659) | Cod sursa (job #2091417)
#include<cstdio>
using namespace std;
const int DIM=100;
char buffer[DIM];
int cursor=DIM-1;
void read(int &x){
x=0;
while(!(buffer[cursor]>='0' and buffer[cursor]<='9'))
if(++cursor==DIM){
cursor=0;
fread(buffer,1,DIM,stdin);
}
while(buffer[cursor]>='0' and buffer[cursor]<='9'){
x=x*10+buffer[cursor]-'0';
if(++cursor==DIM){
cursor=0;
fread(buffer,1,DIM,stdin);
}
}
}
int main(){
freopen("adunare.in","r",stdin);
freopen("adunare.out","w",stdout);
int a,b;
read(a);
read(b);
printf("%i",a+b);
}