练涛
  2018年8月2日
摘要: 1021 个位数统计 (15)(15 分)给定一个k位整数N = d~k-1~*10^k-1^ + ... + d~1~*10^1^ + d~0~ (00),请编写程序统计每种不同的个位数字出现的次数。例如:给定N = 100311,则有2个0,3个1,和1个3。输入... 阅读全文
posted @ 2018-08-02 22:22 氵丨 阅读(305) 评论(0) 推荐(0)
摘要: 1008 Elevator (20)(20 分)The highest building in our city has only one elevator. A request list is made up with N positive numbers. The... 阅读全文
posted @ 2018-08-02 11:35 氵丨 阅读(171) 评论(0) 推荐(0)
摘要: 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... 阅读全文
posted @ 2018-08-02 11:06 氵丨 阅读(94) 评论(0) 推荐(0)
摘要: 1014 福尔摩斯的约会 (20)(20 分)大侦探福尔摩斯接到一张奇怪的字条:“我们约会吧! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm”。大侦探很快就明白了,字条上奇怪的乱码实际上就是约会的时间“星期... 阅读全文
posted @ 2018-08-02 10:43 氵丨 阅读(341) 评论(0) 推荐(0)
摘要: 1001 A+B Format (20)(20 分)Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups o... 阅读全文
posted @ 2018-08-02 10:43 氵丨 阅读(186) 评论(0) 推荐(0)