Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
437826 阮予正 【C2-3】数字和 C++ 通过 100 1 MS 252 KB 162 2026-04-25 16:38:12

Tests(2/2):


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


测评信息: