Pagini recente » Cod sursa (job #2668933) | Cod sursa (job #903348) | Cod sursa (job #2172058) | Cod sursa (job #2976718) | Cod sursa (job #1708935)
#include <fstream>
using namespace std;
ifstream fin("carte2.in");
ofstream fout("carte2.out");
int main() {
int testsCount;
fin >> testsCount;
while(testsCount--) {
int a, b, c, d, e;
fin >> a >> b >> c >> d >> e;
if(a > b)
swap(a, b);
if(c > d)
swap(c, d);
if (c > e)
swap(c, e);
if(d > e)
swap(d, e);
if(b < e && a < d)
fout << "posibil\n";
else
fout << "imposibil\n";
}
return 0;
}