Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
131551 罗晟睿 05求百位数的每一位数之和 C++ Accepted 1 MS 272 KB 167 2025-09-27 15:22:49

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int m,g,s,b; cin>>m; g=m%10; s=m/10%10; b=m/100%10; cout <<g+s+b; return 0;}