Cod sursa(job #2142214)
Utilizator | Data | 24 februarie 2018 20:58:54 | |
---|---|---|---|
Problema | Carte2 | Scor | 100 |
Compilator | cpp | Status | done |
Runda | Arhiva ICPC | Marime | 0.47 kb |
#include <fstream>
#include <algorithm>
using namespace std;
ifstream fin("carte2.in");
ofstream fout("carte2.out");
int v[10];
int main()
{
int teste,x,y;
fin>>teste;
for(int j=1;j<=teste;j++)
{
fin>>x>>y;
if(x>y)
swap(x,y);
fin>>v[1]>>v[2]>>v[3];
sort(v+1,v+4);
if(v[3]>y&&v[2]>x)
fout<<"posibil\n";
else
fout<<"imposibil\n";
}
return 0;
}