Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
43068 楼俊毅 15五位数数字之和 C++ Accepted 2 MS 272 KB 184 2022-12-04 10:50:11

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int a,b,c,d,e,f; cin>>a; b=a/10000; c=a/1000%10; d=a/100%10; e=a/10%10; f=a%10; cout<<b+c+d+e+f; return 0; }