1005 Spell It Right

1005 Spell It Right (20)(20 分)

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 (<= 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:

12345

Sample Output:

one five



©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,183评论 0 10
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 13,222评论 0 13
  • 第一天户外跑:跑快,没多久就没力气了。慢慢跑,当跑到一个小广场时,碰见了一个爷爷和一个孙子在用玩具车堆泥。我们谁也...
    邓慧娟阅读 2,976评论 1 1
  • 不言简书阅读 2,958评论 2 5
  • 笑来老师一再强调要锻炼写作能力的文章,让我深入思考,想起了自己毅然决然辞掉公职,独闯广东的初衷。当时的初心,...
    游缘阅读 2,415评论 1 0

友情链接更多精彩内容