| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 77483 | sh25_wangtaojie | 最大数max(x,y,z) | C++ | Accepted | 0 MS | 252 KB | 490 | 2025-12-26 14:16:49 |
#include <iostream> #include <iomanip> using namespace std; // 函数:计算三个数的最大值 double max(double x, double y, double z) { return max(max(x, y), z); } // 过程:计算m值 void calculateM(double a, double b, double c) { double m = max(a, b, c) / (max(a + b, b, c) * max(a, b, b + c)); cout << fixed << setprecision(3) << m << endl; } int main() { double a, b, c; cin >> a >> b >> c; calculateM(a, b, c); return 0; }