Cod sursa(job #913571)
Utilizator | Data | 13 martie 2013 17:02:26 | |
---|---|---|---|
Problema | A+B | Scor | 70 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.2 kb |
#include<fstream>
using namespace std;
ifstream f("adunare.in");
ofstream g("adunare.out");
int a,b,S;
int main()
{f>>a>>b;
if(a>0&&b>0)
S=a+b;
g<<S<<'\n';
f.close();
g.close();
return 0;
}