Cod sursa(job #1259422)
| Utilizator | Data | 9 noiembrie 2014 23:28:06 | |
|---|---|---|---|
| Problema | Invers modular | Scor | 0 |
| Compilator | cpp | Status | done |
| Runda | Arhiva educationala | Marime | 0.6 kb |
#include <fstream>
using namespace std ;
ifstream fin("xerox.in") ;
ofstream fout("xerox.out") ;
int main()
{
int T, M, N, DX, DY, py, px;
fin >> T ;
while(T --)
{
int s = 0 ;
fin >> N >> DX >> DY ;
while(N --)
{
int x ;
fin >> x;
s = s ^ x ;
while(x --)
{
fin >> px >> py ;
}
}
if(s > 0)
fout << 1 << '\n' ;
else fout << 0 << '\n' ;
}
fin.close() ;
fout.close() ;
return 0 ;
}
