Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
152285 汪明轩 15五位数数字之和 C++ Accepted 1 MS 272 KB 139 2026-04-25 10:27:12

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; }