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:
1 | 12345 |
Sample Output:
1 | one five |
题解
思路
- 迷惑行为
- 按照它的要求走就行了
- 使用Python处理字符串很轻松
数据结构
不需要
算法
不需要
代码
因为只用Python就能AC,因此只写了Python的代码。
1 | def to_english(i): |