Cod sursa(job #857319)

Utilizator DEYDEY2Tudorica Andrei DEYDEY2 Data 17 ianuarie 2013 18:33:01
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.25 kb
#include<fstream>
using namespace std;
ifstream f("fructe.in");
ofstream g("fructe.out");

int main()
{
	int t,port,ban;
	f>>t;
    while(t) 
	{
		t--;
        f>>port>>ban;
        g<<(ban%2)<<'\n';
	}
	f.close();
	g.close();
	return 0;
}