#include <iostream>
#include <string>
using namespace std;
int main() {
//const string and input
string c[10] =
{ "ling", "yi", "er", "san",
"si", "wu", "liu", "qi", "ba", "jiu" };
string s;
cin >> s;
//negative flag :f
int f = (s[0] == '-') ? 1 : 0;
//output all
if(f) cout << "fu";
for (unsigned int i = f; i < s.length(); i++) {
if (i == 0) cout << c[s[i] - '0'];
else cout<<" " << c[s[i] - '0'];
}
return 0;
}
L1-007 念数字 (10 分)
最新推荐文章于 2022-01-19 19:20:54 发布