PTA甲级——1005
1005 Spell It Right
Input Specification:
Each input file contains one test case. Each case occupies one line which contains an N (≤10^100).
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 |
|
Sample Output:
1 |
|
思路
这道题目题意就是:给你一个数,然后让你计算这个数的所有位上的数的和,然后用中文输出各个位的数,比如12345各个位上的数的和为15,然后输出one five,注意,0~9的英文千万别大错了!!!头疼……
代码
1 |
|