上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 30 下一页
摘要: Problem Description急!灾区的食物依然短缺!为了挽救灾区同胞的生命,心系灾区同胞的你准备自己采购一些粮食支援灾区,现在假设你一共有资金n元,而市场有m种大米,每种大米都是袋装产品,其价格不等,并且只能整袋购买。请问:你用有限的资金最多能采购多少公斤粮食呢?后记:人生是一个充满了变数... 阅读全文
posted @ 2015-09-24 16:20 Vmetrio 阅读(249) 评论(0) 推荐(0)
摘要: Problem DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , su... 阅读全文
posted @ 2015-09-23 20:07 Vmetrio 阅读(178) 评论(0) 推荐(0)
摘要: Problem DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action... 阅读全文
posted @ 2015-09-23 20:04 Vmetrio 阅读(209) 评论(0) 推荐(0)
摘要: DescriptionDiophantus of Alexandria was an egypt mathematician living in Alexandria. He was one of the first mathematicians to study equations where v... 阅读全文
posted @ 2015-09-22 13:19 Vmetrio 阅读(189) 评论(0) 推荐(0)
摘要: 1. N的因子个数条件:给定任意一个一个正整数N要求:求其因子的个数首先给出结论:对于任意的整型N,分解质因数得到N= P1^x1 * P2^x2* …… * Pn^xn;则N的因子个数M为 M=(x1+1) * (x2+1) * …… *(xn+1);证明过程:首先 举个例子吧24 = 2^3 *... 阅读全文
posted @ 2015-09-21 20:30 Vmetrio 阅读(300) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2015-09-21 10:27 Vmetrio 阅读(3) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2015-09-04 21:34 Vmetrio 阅读(9) 评论(0) 推荐(0)
摘要: 各类排序实现代码: 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 #includ... 阅读全文
posted @ 2015-09-04 14:19 Vmetrio 阅读(661) 评论(0) 推荐(0)
摘要: 第一步以LSD为例,假设原来有一串数值如下所示:73, 22, 93, 43, 55, 14, 28, 65, 39, 81首先根据个位数的数值,在走访数值时将它们分配至编号0到9的桶子中:01 812 223 73 93 434 145 55 65678 289 39第二步接下来将这些桶子中的数值... 阅读全文
posted @ 2015-09-04 14:13 Vmetrio 阅读(237) 评论(0) 推荐(0)
摘要: Problem Description开学了,杭电又迎来了好多新生。ACMer想为新生准备一个节目。来报名要表演节目的人很多,多达N个,但是只需要从这N个人中选M个就够了,一共有多少种选择方法?Input数据的第一行包括一个正整数T,接下来有T组数据,每组数据占一行。每组数据包含两个整数N(来报名的... 阅读全文
posted @ 2015-08-30 12:32 Vmetrio 阅读(400) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 30 下一页