Cod sursa(job #1709012)

Utilizator forsakenAweUNIBUC Suditu Cornoiu Chihai forsakenAwe Data 28 mai 2016 10:34:57
Problema Carte2 Scor 0
Compilator cpp Status done
Runda ONIS 2016 - Runda - 2 - ACM ICPC Romanian Programming Contest Marime 0.36 kb
#include <bits/stdc++.h>
using namespace std;

int a,b,c,d,e;
int ok(int c, int d) {
    return a<c && b<d;
}
int main()
{

    int T;
    cin>>T;
    while (T--)
    {
        cin>>a>>b>>c>>d>>e;
        if (ok(c,d)||ok(d,c)||ok(c,e)||ok(e,c)||ok(d,e)||ok(e,d)) cout<<"posibil\n";
        else cout<<"imposibil\n";
    }





    return 0;
}