Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
85795 sh25_wuyy 求和 C++ 通过 0 MS 256 KB 253 2026-03-15 17:58:41

Tests(1/1):


#include <bits/stdc++.h> using namespace std; int main( ){ int x,m,n,b,v,c; cin>>x; m=x%10; n=(x-m)/10%10; b=(x-m-n*10)/100%10; v=(x-m-10*n-100*b)/1000%10; c=(x-x%10000)/10000; cout<<m+n+c+v+b; return 0; }


测评信息: