Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158965 吴尔玉 05求百位数的每一位数之和 C++ Accepted 1 MS 272 KB 205 2026-08-23 16:32:50

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int sz,ge,shi,bai; cin>>sz; ge=sz%10; shi=(sz%100-ge)/10; bai=(sz%1000-shi-ge)/100; cout<<ge+shi+bai; return 0; }