Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.
Input Specification:
Each input file contains one test case. Each case occupies one line which contains an N (≤10100).
Output Specification:
For each test case, output in one line the digits of the sum in English words. There must be one space between two consecutive words, but no extra space at the end of a line.
Sample Input:
12345
Sample Output:
one five
题目翻译:
给出一个非负整数N,计算N的各位置的和,并用英语将这个总和的数的每一位表示出来。
输入规范:
每个输入文件包含一个测试用例,每个包含N(≤10100)的用例占据一行
输出规范:
对于每个测试用例,将每个用例数位上的和的英文输出在一行中,两个连续单词之间必须有空格,行尾不允许有额外空格。
代码:
1 |
|