Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
37687 | 奚晨瑞 | 求灯的个数 | C++ | Wrong Answer | 1 MS | 256 KB | 300 | 2024-01-22 17:29:39 |
#include<iostream> using namespace std; int main() { int x; cin>>x; int a,b,c,e; a=x/100; b=(x-a*100)/10; c=(x-a*100-b*10)/1; e=0; if(a>e){ e=a; } if(b>e){ e=b; } if(c>e){ e=c; } cout<<a<<" "<<b<<" "<<c<<endl<<e; return 0; }