Cod sursa(job #768788)
Utilizator | Data | 17 iulie 2012 18:13:18 | |
---|---|---|---|
Problema | Xerox | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.31 kb |
#include<fstream>
using namespace std;
ofstream out("xerox.out");
int main()
{
ifstream in("xerox.in");
int t,n,m,a,b,dx,dy;
in>>t;
for(; t ;-- t )
{
in>>n>>dx>>dy;
int ans=0;
for(int i=1;i<=n;i++)
{
in>>m>>a>>b;
ans^=m;
}
out<<ans>0?1:0<<'\n';
}
return 0;
}