Cod sursa(job #381696)
Utilizator | Data | 11 ianuarie 2010 12:52:56 | |
---|---|---|---|
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;
int main ()
{
ifstream f("adunare.in");
ofstream g("adunare.out");
f>>a;
f>>b;
if((a+b)%2==0)
g<<0;
g<<a+b;
f.close ();
g.close ();
return 0;
}