Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
65136 邓嘉瑶 05求百位数的每一位数之和 C++ Accepted 2 MS 272 KB 181 2024-01-24 10:40:58

Tests(10/10):


Code:

#include<iostream> using namespace std; int main(){ int a; scanf("%d",&a); int g=a%10; int s=a/10%10; int b=a/100%10; int h=g+s+b; printf("%d",h); return 0; }