Pagini recente » Cod sursa (job #1374073) | Cod sursa (job #1597143) | Cod sursa (job #801355) | Cod sursa (job #2841104) | Cod sursa (job #2654560)
#include <fstream>
using namespace std;
ifstream fin("carte2.in");
ofstream fout("carte2.out");
int a,b,f,d,e,n,i;
int main()
{
fin >>n;
for (i=1;i<=n;i++)
{
fin >>a>>b>>d>>e>>f;
if (a<d&&(b<e||b<f))
{
fout <<"posibil";
}
else
if (a<e&&(b<d||b<f))
{
fout <<"posibil";
}
else
if (a<f&&(b<d||b<e))
{
fout <<"posibil";
}
else fout <<"imposibil";
fout <<'\n';
}
return 0;
}