Cod sursa(job #954142)

Utilizator PuricePurice Stefania Purice Data 28 mai 2013 11:53:00
Problema Fructe Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.21 kb
#include<fstream>
using namespace std;
ifstream f("fructe.in");
ofstream g("fructe.out");
int t, p, b;
int main(){
	f>>t;
	for(int i=1; i<=t; i++){
		f>>p>>b;
		g<<b%2<<'\n';
	}
	g.close();
	return 0;
}