Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78149 张黄源 各个位数之和 C++ Accepted 0 MS 272 KB 154 2024-06-16 15:22:14

Tests(5/5):


Code:

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