Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
69273 刘泽熙 05求百位数的每一位数之和 C++ Accepted 0 MS 272 KB 186 2024-03-31 14:27:22

Tests(10/10):


Code:

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