Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
84556 卢语涵 各个位数之和 C++ Accepted 1 MS 268 KB 187 2024-07-16 10:46:45

Tests(5/5):


Code:

#include<iostream> using namespace std; int main(){ int z,b=0; cin>>z; do{ b = b+z%10; z=z/10; }while(z!=0); cout<<b; return 0; }