Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
106987 王晏林 05求百位数的每一位数之和 C++ Accepted 1 MS 272 KB 192 2025-01-17 10:35:25

Tests(10/10):


Code:

#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,s,g; cin>>a; b=a/100; s=a/10%10; g=a%10; cout<<b+s+g<<endl; return 0; }