正经题解|四数最大值
2024-09-19 13:52:15
发布于:浙江
36阅读
0回复
1点赞
最大值
题目分析
从给出的 个数字中,找出最大值。
在 c++
中我们可以直接使用 max
函数。
AC代码
#include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c,d;
cin >> a >> b >> c >> d;
cout << max({a,b,c,d}) << endl;
return 0;
}
这里空空如也
有帮助,赞一个