Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
110175 汤奕硕 求三个数的最大值 C++ Accepted 1 MS 268 KB 331 2025-02-15 13:14:22

Tests(1/1):


Code:

#include <iostream> #include <algorithm> // 用于 std::max using namespace std; int main() { int a, b, c; // 读取三个整数,用空格分隔 cin >> a >> b >> c; // 比较大小并输出最大的值 int max_value = max({a, b, c}); cout << "max=" << max_value << endl; return 0; }