Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
3650 | 杨洋杰 | 求三个数的最大值 | C++ | Accepted | 0 MS | 256 KB | 364 | 2024-06-22 16:36:27 |
#include<iostream> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; if(a>b){ if(a>c) cout<<"max="<<a; else cout<<"max="<<c; } if(a>c){ if(a>b) cout<<"max="<<a; else cout<<"max="<<b; } if(b>c){ if(b>a) cout<<"max="<<b; else cout<<"max="<<a; } return 0; }