Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
109288 | 于铁林 | 08比较三个数的大小 | C++ | Accepted | 1 MS | 272 KB | 276 | 2025-02-08 09:57:40 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>=b&&a>=c){ max=a; } if(b>=a&&c<=b){ max=b; } if(c>=a&&b<=c){ max=c; } cout<<max; return 0; }