Cod sursa(job #657168)
Utilizator | Data | 5 ianuarie 2012 21:25:26 | |
---|---|---|---|
Problema | Xerox | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.44 kb |
#include<fstream>
#include<string>
using namespace std;
string f;
int main(void){
ifstream fin("xerox.in");
ofstream fout("xerox.out");
int i,sol=0,x,t,n;
for(fin>>t;t;t--){
fin>>n>>x>>x;
for(i=1;i<=n;++i){
fin>>x; sol^=x; getline(fin,f);
}
fout<<(sol>0);
}
return 0;
}