Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93654 翁思宸 05求百位数的每一位数之和 C++ Accepted 1 MS 268 KB 206 2024-10-18 19:26:33

Tests(10/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() using namespace std; int main(){ int a; scanf("%d",&a); printf("%d",(a/100)+(a/10%10)+(a%10)); return 0; }