Cod sursa(job #1708886)

Utilizator TAKAUCV Ciurez Ehorovici Danciulescu TAKA Data 28 mai 2016 10:05:19
Problema Carte2 Scor 100
Compilator cpp Status done
Runda ONIS 2016 - Runda - 2 - ACM ICPC Romanian Programming Contest Marime 0.45 kb
#include <bits/stdc++.h>

using namespace std;

int a, b, c, d ,e, T;

ifstream fin("carte2.in");
ofstream fout("carte2.out");

int main()
{
    fin >> T;

    while(T --)
    {
        fin >> a >> b  >> c >> d >> e;
        if( (a < c && b < d) || (a < c && b < e) || (a < d && b < e) || (a < d && b < c) || (a<e && b<d) || (a<e && b<c)  )
            fout<<"posibil\n";
        else
           fout<<"imposibil\n";
    }

    return 0;
}