Cod sursa(job #633350)
Utilizator | Andrei Diaconu andrei_diaconu | Data | 13 noiembrie 2011 17:08:54 |
---|---|---|---|
Problema | A+B | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.24 kb |
#include<iostream>
#include<fstream>
using namespace std;
int a,b,s;
int main()
{
ifstream f("adunare.in",ios::in);
ofstream g("adunare.out",ios::out);
f>>a;
f>>b;
s=a+b;
g<<s;
f.close();
g.close();
return 0;
}