Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117496 罗安博 08比较三个数的大小 C++ Accepted 1 MS 272 KB 295 2025-04-19 11:20:23

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c; cin>>a>>b>>c; bool d=((a>b&&a>c) !=0 ? 1:0) ; bool e=((b>a&&b>c) !=0 ? 1:0) ; bool f=((c>b&&c>a) !=0 ? 1:0) ; if(d==1){ cout<<a; } if(e==1){ cout<<b; } if(f==1){ cout<<c; } return 0; }