摘要: 1028 List Sorting (25分) Excel can sort records according to any column. Now you are supposed to imitate this function. Input Specification: Each input 阅读全文
posted @ 2020-04-18 10:39 TresBienBA 阅读(109) 评论(0) 推荐(0)
摘要: 1033 旧键盘打字 (20分) 旧键盘上坏了几个键,于是在敲一段文字的时候,对应的字符就不会出现。现在给出应该输入的一段文字、以及坏掉的那些键,打出的结果文字会是怎样? 输入格式: 输入在 2 行中分别给出坏掉的那些键、以及应该输入的文字。其中对应英文字母的坏键以大写给出;每段文字是不超过 105 阅读全文
posted @ 2020-04-15 12:45 TresBienBA 阅读(134) 评论(0) 推荐(0)
摘要: 1028 人口普查 (20分) 某城镇进行人口普查,得到了全体居民的生日。现请你写个程序,找出镇上最年长和最年轻的人。 这里确保每个输入的日期都是合法的,但不一定是合理的——假设已知镇上没有超过 200 岁的老人,而今天是 2014 年 9 月 6 日,所以超过 200 岁的生日和未出生的生日都是不 阅读全文
posted @ 2020-04-12 10:34 TresBienBA 阅读(136) 评论(0) 推荐(0)
摘要: 1004 Counting Leaves (30分) A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. In 阅读全文
posted @ 2020-04-09 17:46 TresBienBA 阅读(132) 评论(0) 推荐(0)
摘要: 1002 A+B for Polynomials (25分) This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contain 阅读全文
posted @ 2020-04-09 17:00 TresBienBA 阅读(132) 评论(0) 推荐(0)
摘要: 1001 A+B Format (20分) Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unl 阅读全文
posted @ 2020-04-09 16:33 TresBienBA 阅读(115) 评论(0) 推荐(0)
摘要: 1012 The Best Rank (25分) To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Prog 阅读全文
posted @ 2020-04-04 22:15 TresBienBA 阅读(81) 评论(0) 推荐(0)
摘要: 1003 Emergency (25分) As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities 阅读全文
posted @ 2020-04-02 22:39 TresBienBA 阅读(79) 评论(0) 推荐(0)
摘要: 1021 Deepest Root (25分) A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you 阅读全文
posted @ 2020-04-02 11:18 TresBienBA 阅读(140) 评论(0) 推荐(0)