三位数,各个位数相加和 #include<iostream>#include<cstdio>using namespace std;int main(){int n,a,b,c;cin >>n;a=n%10;b=n/10%10;c=n/100;cout <<a+b+c<< endl;return 0;} 信息学奥赛一本通c++ 2023-10-28 60 点赞 0 评论 90 浏览