Cod sursa(job #3235438)
Utilizator | Data | 17 iunie 2024 21:35:14 | |
---|---|---|---|
Problema | Xerox | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva de probleme | Marime | 0.21 kb |
#include<fstream>
using namespace std;ifstream f("xerox.in");ofstream g("xerox.out");int main(){int t,n,m,s;f>>t;while(t--){s=0;string l;f>>n;getline(f,l);while(n--){f>>m;getline(f,l);s^=m;}g<<(s!=0)<<'\n';}}