Cod sursa(job #2008080)
Utilizator | Data | 5 august 2017 12:00:22 | |
---|---|---|---|
Problema | Xerox | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include <fstream>
using namespace std;int t,n,s,a,x,i;int main(){ifstream f("xerox.in");ofstream g("xerox.out");f>>t;while(t--){s=0;f>>n>>x>>x;while(n--){f>>a;s^=a;for(i=0;i<a;++i) f>>x>>x;}g<<s ? 1:0<<'\n';}}