#include<bits/stdc++.h>
using namespace std;
string a[10] = { "zero","one","two","three","four","five","six","seven","eight","nine" };//将数字转化为英语要用
int c[1086];
long long sum;
int main(){
string k;
cin>>k;
for(int i=0;i<k.size();i++){
//cout<<k[i];
sum+=k[i]-'0';//求总和
}
//cout<<sum;
int j=1;
while(sum){
c[j]=sum%10;
sum/=10;
j++;
}
for(int i=j-1;i>0;i--){
cout<<a[c[i]]<<" ";
}
}
每天一题(1)
最新推荐文章于 2024-08-21 18:16:36 发布