Cod sursa(job #937113)
| Utilizator | Data | 9 aprilie 2013 19:42:25 | |
|---|---|---|---|
| Problema | A+B | Scor | 100 |
| Compilator | cpp | Status | done |
| Runda | Arhiva de probleme | Marime | 0.3 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
long a, b;
ifstream f("adunare.in");
if(f.is_open()) {
f >> a;
f >> b;
}
f.close();
ofstream g("adunare.out");
if(g.is_open())
g << a + b << endl;
g.close();
return 0;
}
