Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128402 唐钧 Tom数 C++ 解答错误 33 0 MS 240 KB 165 2024-01-25 17:09:25

Tests(1/3):


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


测评信息: