Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
37681 | 奚晨瑞 | 求和 | C++ | Accepted | 0 MS | 240 KB | 263 | 2024-01-22 17:20:39 |
#include<iostream> using namespace std; int main() { int x; cin>>x; int a,b,c,d,e; a=x/10000; b=(x-a*10000)/1000; c=(x-a*10000-b*1000)/100; d=(x-a*10000-b*1000-c*100)/10; e=x%10; cout<<(a+b+c+d+e); return 0; }