Pagini recente » Cod sursa (job #711823) | Cod sursa (job #2708003) | Cod sursa (job #530292) | Cod sursa (job #2864296) | Cod sursa (job #1974649)
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
int t, i;
int a, b, c, d, e;
ios_base::sync_with_stdio(false);
cin >> t;
while (t--)
{
cin >> a >> b >> c >> d >> e;
if (c > d)
swap(c, d);
if (d > e)
swap(d, e);
if (e > 1 && ((a < d && b < e) || (b < d && a < e)))
cout << "posibil\n";
else
cout << "imposibil\n";
}
}