| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 132976 | 林鑫磊 | 求三个数的最大值 | C++ | Wrong Answer | 1 MS | 268 KB | 422 | 2025-10-12 19:06:24 |
#include<iostream> #include<cstdio> #include<cstring> #include <iomanip> #include<cmath> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a>b>c){ cout<<"max="<<a; }else if(a>c>b){ cout<<"max="<<a; }else if(b>a>c){ cout<<"max="<<b; }else if(b>c>a){ cout<<"max="<<b; }else{ cout<<"max="<<b; } return 0; }
------Input------
8 5 20
------Answer-----
max=20
------Your output-----
max=5