Cod sursa(job #108886)
Utilizator | Data | 24 noiembrie 2007 01:11:33 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.29 kb |
#include<fstream.h>
#include<string.h>
#include<stdlib.h>
int main()
{
ifstream fin("adunare.in");
ofstream fout("adunare.out");
long a,b,s;
char x[256],y[256];
fin.get(x,256);
fin.get();
fin.get(y,256);
a=atoi(x);
b=atoi(y);
s=a+b;
fout<<s;
fin.close();
fout.close();
return 0;
}