| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 111339 | 王昕怡 | 05求百位数的每一位数之和 | C++ | Wrong Answer | 0 MS | 288 KB | 377 | 2025-03-01 16:14:28 |
#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 q,w,e,r; cin>>q; r=q/100; w=q%100/10; e=q%10; q=r+e+w; cout<<q<<endl; return 0; }
------Input------
923
------Answer-----
14
------Your output-----