Cod sursa(job #2058894)
Utilizator | Data | 6 noiembrie 2017 12:54:52 | |
---|---|---|---|
Problema | Xerox | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.4 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream f("xerox.in");
ofstream g("xerox.out");
int main(){
int T;
f>>T;
while(T--){
int pagini, n, m, rez=0, ceva;
string s;
f>>pagini>>n>>m;
for(int i=0; i<pagini; ++i){
f>>ceva;
rez^=ceva;
getline(f,s);
}
g<<rez<<"\n";
}
return 0;
}