Pagini recente » Cod sursa (job #44752) | Cod sursa (job #2482250) | Cod sursa (job #1062578) | Cod sursa (job #1435909) | Cod sursa (job #1709015)
#include <fstream>
using namespace std;
ifstream f("carte2.in");
ofstream q("carte2.out");
int main()
{
int t,a,b,c,d,e;
f>>t;
for(;t>0;t--){
f>>a>>b>>c>>d>>e;
if ( ((a < c) && (b < d)) || ((a < d) && (b < c)) ||
((a < c) && (b < e)) || ((a < e) && (b < c)) ||
((a < d) && (b < e)) || ((a < e) && (b < d))){
q<<"posibil\n";
}else q<<"imposibil\n";
}
return 0;
}