This commit is contained in:
Andrew 2019-11-18 11:02:11 +07:00
parent 0d75f30a49
commit 4744ebb565
69 changed files with 7 additions and 5 deletions

View file

@ -1,22 +0,0 @@
// pb_z3_9.cpp
// Горбацевич Андрей
#include <cmath>
#include <iostream>
#include<algorithm>
using namespace std;
float min_or_max(float a, float b, float c)
{
if (a > 0.5)
return max(b, c);
else
return min(b, c);
}
int main()
{
float a, b, c;
cin >> a >> b >> c;
float d = min_or_max(a, b, c);
cout << d << endl;
}