| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 154197 | 田子熙 | 比较三个数的大小 | C++ | Accepted | 1 MS | 272 KB | 365 | 2026-05-26 18:56:27 |
#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,d,e,f; cin>>a>>b>>c; int *a1=&a,*b1=&b,*c1=&c; e=max(*c1,max(*a1,*b1)); if(e==*a1){ d=max(*c1,*b1); f=min(*c1,*b1); }else if(e==*b1){ d=max(*a1,*c1); f=min(*a1,*c1); }else if(e==*c1){ d=max(*a1,*b1); f=min(*a1,*b1); } cout<<e<<" "<<d<<" "<<f; return 0; }