Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78427 吴天辰 求三个数的最大值 C++ Wrong Answer 0 MS 268 KB 254 2024-06-21 19:42:51

Tests(0/1):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,t; cin>>a>>b>>c; if(a>b) { t=a; a=b; b=t; } if(a>c) { t=a; a=c; c=t; } if(b>c) { t=b; b=c; c=t; } cout<<"max="<<a; return 0; }


Run Info:

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