Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
58931 段文昊 15五位数数字之和 C++ Accepted 3 MS 272 KB 193 2023-10-10 19:02:42

Tests(10/10):


Code:

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