Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
114031 | 万嘉宇 | 05求百位数的每一位数之和 | C++ | Accepted | 0 MS | 272 KB | 343 | 2025-03-18 19:48:20 |
#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,b,c; scanf("%1d%1d%1d",&a,&b,&c); printf("%d",a+b+c); return 0; }