Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118155 | 翁思宸 | 15五位数数字之和 | C++ | Accepted | 1 MS | 268 KB | 424 | 2025-04-25 18:56:24 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int x,g,s,b,q,w,son=0; cin>>x; g=x%10; s=x/10%10; b=x/100%10; q=x/1000%10; w=x/10000; son+=g+s+b+q+w; cout<<son; return 0; }