Cod sursa(job #690143)
Utilizator | Data | 25 februarie 2012 11:45:45 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.19 kb |
#include <fstream.h>
int main()
{
ifstream ii("adunare.in");
ofstream oo("adunare.out");
long a,s=0;
ii >> a; s += a;
ii >> a; s += a;
oo << s;
ii.close(); oo.close();
}