Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118154 | 江梵睿 | 15五位数数字之和 | C++ | Accepted | 1 MS | 280 KB | 418 | 2025-04-25 18:55:02 |
#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 a=0,n,g,s,b,q,w; cin>>n; g=n%10; s=n/10%10; b=n/100%10; q=n/1000%10; w=n/10000; a+=g+s+b+q+w; cout<<a; return 0; }