摘要: Big Event in HDUProblem DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had ever been split into Computer College and Software College in 2002.The splitting is absolutely a big event in HDU! At the same time 阅读全文
posted @ 2012-04-18 22:00 龙杉老师 阅读(209) 评论(0) 推荐(0)
摘要: Holding Bin-Laden Captive!We all know that Bin-Laden is a notorious terrorist, and he has disappeared for a long time. But recently, it is reported that he hides in Hang Zhou of China!“Oh, God! How terrible! ”Don’t be so afraid, guys. Although he hides in a cave of Hang Zhou, he dares not to go out. 阅读全文
posted @ 2012-04-18 19:20 龙杉老师 阅读(232) 评论(0) 推荐(0)
摘要: Square CoinsProblem DescriptionPeople in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins with values of all square numbers up to 289 (=17^2), i.e., 1-credit coins, 4-credit coins, 9-credit coins, ..., and 289-credit coins, are available i 阅读全文
posted @ 2012-04-18 15:53 龙杉老师 阅读(326) 评论(0) 推荐(0)
摘要: 排列组合Problem Description有n种物品,并且知道每种物品的数量。要求从中选出m件物品的排列数。例如有两种物品A,B,并且数量都是1,从中选2件物品,则排列有"AB","BA"两种。Input每组输入数据有两行,第一行是二个数n,m(1<=m,n<=10),表示物品数,第二行有n个数,分别表示这n件物品的数量。Output对应每组数据输出排列数。(任何运算不会超出2^31的范围)Sample Input2 2 1 1Sample Output2解:指数型母函数的应用#include<iostream>#includ 阅读全文
posted @ 2012-04-18 09:35 龙杉老师 阅读(590) 评论(0) 推荐(0)