Cod sursa(job #381688)
Utilizator | Data | 11 ianuarie 2010 12:51:02 | |
---|---|---|---|
Problema | A+B | Scor | 0 |
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");
f >> a >> b;
f.close();
ofstream g("adunare.out");
if ((a+b)%2==0) g<<0;
else g<<a+b;
g.close();
return 0;
}