Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152309 王润中 15五位数数字之和 C++ Accepted 1 MS 272 KB 163 2026-04-25 10:55:39

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int n; cin>>n; int t=n,s=0; while(t) { s+=t%10; t/=10; } cout<<s; }