Cod sursa(job #2495901)
Utilizator | Verestiuc Andrei VerestiucAndrei | Data | 19 noiembrie 2019 22:51:24 |
---|---|---|---|
Problema | Carte2 | Scor | 100 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva ICPC | Marime | 0.45 kb |
#include <fstream>
using namespace std;
ifstream fin ("carte2.in");
ofstream fout ("carte2.out");
int a,b,c,d,e,t;
int main()
{
fin>>t;
while (t>0)
{
fin>>a>>b>>c>>d>>e;
if ((a<c && b<d) || (a<c && b<e) || (a<d && b<c) || (a<d && b<e) || (a<e && b<c) || (a<e && b<d))
fout<<"posibil"<<'\n';
else
fout<<"imposibil"<<'\n';
t--;
}
fout.close();
return 0;
}