Mai intai trebuie sa te autentifici.
Cod sursa(job #442408)
Utilizator | Data | 14 aprilie 2010 14:02:03 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.25 kb |
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
int a;
int b;
ifstream f;
f.open("adunare.in");
ofstream g;
g.open("adunare.out");
f >> a;
f >> b;
g << a + b << endl;
f.close();
g.close();
}