摘要: Question 1: Is Bigger Smarter?The ProblemSome people think that the bigger an elephant is, the smarter it is. To disprove this, you want to take the data on a collection of elephants and put as large a subset of this data as possible into a sequence so that the weights are increasing, but the IQ' 阅读全文
posted @ 2014-02-18 18:14 ~~Snail~~ 阅读(246) 评论(0) 推荐(0) 编辑
摘要: DollarsNew Zealand currency consists of $100, $50, $20, $10, and $5 notes and $2, $1, 50c, 20c, 10c and 5c coins. Write a program that will determine, for any given amount, in how many ways that amount may be made up. Changing the order of listing does not increase the count. Thus 20c may be made up 阅读全文
posted @ 2014-02-18 17:44 ~~Snail~~ 阅读(214) 评论(0) 推荐(0) 编辑
摘要: Problem E: VacationThe ProblemYou are planning to take some rest and to go out on vacation, but you really don't know which cities you should visit. So, you ask your parents for help. Your mother says"My son, you MUST visit Paris, Madrid, Lisboa and London. But it's only fun in this ord 阅读全文
posted @ 2014-02-18 17:29 ~~Snail~~ 阅读(133) 评论(0) 推荐(0) 编辑