Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
81036 令狐文丽 05求百位数的每一位数之和 C++ Accepted 1 MS 276 KB 161 2024-07-12 09:08:56

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int a,ge,s,b; cin >> a; ge = a%10; s = a %100/10; b = a /100; cout<<ge + s + b; return 0; }