Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
41044 | Andrew宥杨 | 求三位数各数位中最大值 | C++ | Compile Error | 0 MS | 0 KB | 206 | 2024-02-19 09:04:23 |
#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; int ge=a%10; int shi=a/10%10; int bai=a/100; cout<<ge<<" "<<shi<<" "<<bai<<endl; cout<<max(ge,shi,bai); return 0; }