Cod sursa(job #1190551)
Utilizator | Data | 25 mai 2014 14:31:24 | |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | itmarathon | Marime | 0.31 kb |
#include <iostream>
#include<fstream>
using namespace std;
int main()
{
long a, b, s;
ifstream f;
f.open("adunare.in", ifstream::in);
ofstream g;
g.open("adunare.out", ofstream::out);
f>>a;
f>>b;
s=a+b;
g<<s;
f.close();
g.close();
return 0;
}