Cod sursa(job #381694)

Utilizator pop_danielPop Daniel Vasile pop_daniel Data 11 ianuarie 2010 12:52:16
Problema A+B Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.23 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;
	else g<<a+b;
	f.close();
	g.close();
	return 0;
}