C++
#include <iomanip>
using namespace std;
int max(int, int, int); //申明找最大数函数
int main() {
/*m =3 / (3 * 5)
*/
int a, b, c;
double m;
cin >> a >> b >> c;
m = 1.0 * max(a,b, c) / (max(a+b, b, c) * max(a, b, b+c));
cout << fixed << setprecision(3)<< endl;
cout << m << endl;
cout << "m = " << max(a,b, c) << " / (" << max(a+b, b, c) << " * "
<< max(a, b, b+c) << ')'<< endl;
return 0;
}
int max(int a, int b, int c)
{
int temp = a;
if(a < b)
{
temp = b;
}
if(temp < c)
temp = c;
return temp;
}