Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
127301 陈淮遇 【入门】求任意三位数各个数位上数字的和 C++ Accepted 1 MS 272 KB 208 2025-07-26 20:23:17

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a;//123 cin >> a; int b = a / 100; //1 int c = a / 10 % 10; //2 int d = a % 10; //3 int e = b + c + d; cout << e; return 0; }