Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
147211 赖泓宇 05求百位数的每一位数之和 C++ Wrong Answer 0 MS 272 KB 365 2026-02-03 16:15:36

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<iomanip> #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,m,s,b; cin>>b; n=b%10; m=b/10%10; s=b%10/10; cout<<n+m+s; }


Run Info:

------Input------
923
------Answer-----
14
------Your output-----
5