Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
106982 | 于铁林 | 05求百位数的每一位数之和 | C++ | Accepted | 1 MS | 272 KB | 191 | 2025-01-17 10:33:31 |
#include<iostream> #include<cstdio> using namespace std; int main(){ int a,b,s,g; cin>>a; b=a/100; s=a/10%10; g=a%10; cout<<b+s+g<<endl; return 0; }