Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
105683 叶城俊 15五位数数字之和 C++ Accepted 1 MS 272 KB 247 2025-01-14 11:19:15

Tests(10/10):


Code:

#include<iostream> using namespace std; int main (){ int a,g,s,b,q,w; cin>>a; w=a/10000; q=a%10000/1000; b=a%10000%1000/100; s=a%10000%1000%100/10; g=a%10000%1000%100%10; cout<<w+q+b+s+g; return 0; }