Cod sursa(job #938159)
Utilizator | Data | 11 aprilie 2013 22:23:23 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.22 kb |
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
long a,b;
fstream f("adunare.in", ios::in);
f >> a >> b;
f.close(); f.open("adunare.out", ios::out);
f << a+b;
f.close();
return 0;
}