Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
80492 石晋骁 15五位数数字之和 C++ Accepted 1 MS 272 KB 254 2024-07-11 14:53:18

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int sum = 0; int n; cin >> n; int g = n%10; int s = n/10%10; int b = n/100%10; int q = n/1000%10; int w = n/10000%10; cout << g+s+b+q+w; return 0; }