Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
348901 王振宇 【C1-5】计算各位和 C++ 通过 100 3 MS 256 KB 159 2025-09-14 14:49:29

Tests(2/2):


#include<bits/stdc++.h> using namespace std; int main(){ int a,cum=0; cin>>a; while(a>0){ cum+=a%10; a/=10; } cout<<cum<<endl; return 0; }


测评信息: