摘要: 题目链接In a strange shop there arentypes of coins of valueA1, A2... An.C1, C2, ... Cndenote the number of coins of valueA1, A2... Anrespectively. You have to find the number of ways you can makeKusing the coins.For example, suppose there are three coins 1, 2, 5 and we can use coin 1 at most 3 times, co 阅读全文
posted @ 2013-04-22 19:15 xindoo 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 题目链接The people of Mohammadpur have decided to paint each of their houses red, green, or blue. They've also decided that no two neighboring houses will be painted the same color. The neighbors of housei are houses i-1 and i+1. The first and last houses are not neighbors.You will be given the info 阅读全文
posted @ 2013-04-22 08:27 xindoo 阅读(181) 评论(0) 推荐(0) 编辑