Cod sursa(job #694198)

Utilizator harababurelPuscas Sergiu harababurel Data 27 februarie 2012 19:14:10
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.26 kb
#include <iostream>
#include <fstream>
using namespace std;
int main() {
	ifstream f("fructe.in");
	ofstream g("fructe.out");
	short t;
	int p, b, i;
	f>>t;
	for(i=1; i<=t; i++) {
		f>>p>>b;
		g<<b%2<<"\n";
	}
	
	f.close();
	g.close();
	return 0;
}