| Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|
| 43360 | Songgr | 求三位数各数位中最大值 | C++ | Wrong Answer | 0 MS | 252 KB | 277 | 2024-03-11 22:28:34 |
#include<bits/stdc++.h> using namespace std; int main() { int a,b,c,n,max=0;; cin>>a>>b>>c>>n; a=n/100; b=n/10%10; c=n%10; if(a>b){ max=a; } else { max=b; } if(c>max){ max=c; } cout<<a<<" "<<b<<" "<<c<<endl; cout<<max; return 0; }