Pagini recente » Clasamentul arhivei ACM | Cod sursa (job #1453233) | Cod sursa (job #270445) | Cod sursa (job #1342150) | Cod sursa (job #1708929)
#include <fstream>
#include <cmath>
using namespace std;
int n,m,i,j,t,a,b,c,d,e;
int main()
{
ifstream fin("a.in");
ofstream fout("a.out");
fin>>t;
for(i=1;i<=t;i++)
{
fin>>a>>b>>c>>d>>e;
bool ok = false;
if(a<c && b<d)
{
ok = true;
}
if(a<d && b<c)
{
ok = true;
}
if(a<d && b<e)
{
ok = true;
}
if(a<e && b<d)
{
ok = true;
}
if(a<c && b<e)
{
ok = true;
}
if(a<e && b<c)
{
ok = true;
}
if(ok==true)
{
fout<<"posibil\n";
}
else
{
fout<<"imposibil\n";
}
}
}