Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
335227 李俞家骅 【C2-3】数字和 C++ 通过 100 4 MS 256 KB 154 2025-07-22 10:58:17

Tests(2/2):


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


测评信息: