Cod sursa(job #28222)
Utilizator | Data | 7 martie 2007 16:54:54 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.17 kb |
#include <fstream.h>
void main()
{
long a,b,s;
ifstream f("adunare.in");
ofstream g("adunare.out");
f>>a>>b;
s=a+b;
if(s<2000000000)
g<<s;
f.close();
g.close();
}