Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81064 勾好 求三个数的最大值 C++ Accepted 1 MS 268 KB 304 2024-07-12 09:42:57

Tests(1/1):


Code:

#include<iostream> using namespace std; int main(){ int a,b,c,d; cin>>a>>b>>c; if(a>b){ d = a; if(d>c){ cout<<"max="<<d<<endl; }else{ cout<<"max="<<c<<endl; } }else{ d = b; if(d>c){ cout<<"max="<<d<<endl; }else{ cout<<"max="<<c<<endl; } } return 0; }