比read number in chinese简单的多。。
//
// main.cpp
// test
//
// Created by Jacky Roth on 2019/2/22.
// Copyright © 2019 Jacky Roth. All rights reserved.
//
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <string>
#include <math.h>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
int main(int argc, const char * argv[]) {
string x;
cin>>x;
int res=0;
for (int i=0; i<x.length(); i++) {
res+=x[i]-'0';
}
string r[10]={"zero","one","two","three","four","five","six","seven","eight","nine"};
vector<string>ans;
do{
ans.push_back(r[res%10]);
res/=10;
}while (res!=0);
for (int i=(int)ans.size()-1; i>=0; i--) {
cout<<ans[i];
if (i>0) {
cout<<" ";
}else{
cout<<endl;
}
}
return 0;
}