提交时间:2024-01-22 17:22:32
运行 ID: 123145
#include<iostream> using namespace std; int main() { int a,b,c,d,e; cin>>a; a=100*b+10*c+d; d=a-100*b-10*c; c=(a-100*b-d)/10; b=(a-d-10*c)/100; e=b+c+d; cout<<e<<endl; return 0; }