Cod sursa(job #1067435)

Utilizator petretiberiu46Petre Tiberiu petretiberiu46 Data 26 decembrie 2013 20:22:13
Problema Xerox Scor 0
Compilator cpp Status done
Runda Arhiva de probleme Marime 0.47 kb
#include <fstream>
#include <iostream>

using namespace std;
ifstream f("xerox.in");
ofstream g("xerox.out");

int main()
{
    int t, n, m, dx, dy, x, y;
    bool ok;
    f>>t;
    while(t--)
    {
        f>>n>>dx>>dy;
        while(n--)
        {
            f>>m;
            if(m != 1 || m != 0)
            {
                ok = 1;
            }
            else
            {
                ok = 0;
            }
        }
    }
    g<<ok;
}