Cod sursa(job #1712972)
Utilizator | Stoica Alex Arkiny | Data | 4 iunie 2016 13:22:58 |
---|---|---|---|
Problema | Carte2 | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva ICPC | Marime | 0.4 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;
}