Pagini recente » Istoria paginii runda/wellcodesimulare2martieclasa9/clasament | Cod sursa (job #135370) | Cod sursa (job #2684598) | Cod sursa (job #2078995) | Cod sursa (job #2683312)
#include <fstream>
using namespace std;
ifstream fin ("carte2.in");
ofstream fout ("carte2.out");
int main()
{
int t, i, a, b, c, d, e;
fin>>t;
for (i=1;i<=t;i++)
{
fin>>a>>b>>c>>d>>e;
if (a < c && (b < d or b < e) )
fout<<"posibil"<<'\n';
else
{
if ( a < d && (b < c or b < e))
fout<<"posibil"<<'\n';
else
{
if (a < e && (b < c or b < e))
fout<<"posibil"<<'\n';
else
fout<<"imposibil"<<'\n';
}
}
}
return 0;
}