Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
128405 唐钧 Tom数 C++ 通过 100 0 MS 248 KB 169 2024-01-25 17:09:52

Tests(3/3):


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


测评信息: