Pagini recente » Cod sursa (job #799827) | Cod sursa (job #226334) | Cod sursa (job #301592) | Cod sursa (job #1927516) | Cod sursa (job #2514025)
#include <bits/stdc++.h>
using namespace std;
ifstream fin("carte2.in");
ofstream fout("carte2.out");
int t,a,b,c,d,e;
int main()
{
fin >> t;
while (t)
{
fin >> a >> b >> c >> d >> e;
if (a<c and (b<d or b<e)) fout << "posibil\n";
else if (a<d and (b<c or b<e)) fout << "posibil\n";
else if (a<e and (b<c or b<d)) fout << "posibil\n";
else fout << "imposibil\n";
t--;
}
return 0;
}