Cod sursa(job #2291728)
Utilizator | Data | 28 noiembrie 2018 15:50:33 | |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.26 kb |
#include <fstream>
using namespace std; ifstream fin("xerox.in"); ofstream fout("xerox.out");
int t,nr,x,sol,a; int main(){
fin>>t;for( ; t ;t--){
fin>>nr>>x>>x;sol=0;
for(;nr;nr--){fin>>x;sol^=x;
for(;x;x--)fin>>a>>a;}
if(sol!=0) fout<<"1\n";else fout<<"0\n";}}