Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
132976 林鑫磊 求三个数的最大值 C++ Wrong Answer 1 MS 268 KB 422 2025-10-12 19:06:24

Tests(0/1):


Code:

#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; }


Run Info:

------Input------
8 5 20
------Answer-----
max=20
------Your output-----
max=5