Cod sursa(job #270065)

Utilizator alex_mircescuAlex Mircescu alex_mircescu Data 3 martie 2009 18:50:30
Problema Xerox Scor 100
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.34 kb
#include <stdio.h>

long t, n, s, k, x, y;
char q[1024];

int main() {
	freopen("xerox.in", "r", stdin);
	freopen("xerox.out", "w", stdout);
	scanf("%ld", &t);
	while (t--) {
		scanf("%ld %ld %ld", &n, &x, &y);
		s = 0;
		while (n--) {
			scanf("%ld", &k);
			s ^= k;
			gets(q);		
		}
		printf("%d\n", !!s);
	}
	return 0;
}