Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
145432 徐文雅 08比较三个数的大小 C++ Accepted 1 MS 272 KB 327 2026-01-25 15:14:32

Tests(10/10):


Code:

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