![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HDU
为而不争熙
这个作者很懒,什么都没留下…
展开
-
排名
Problem Description今天的上机考试虽然有实时的Ranklist,但上面的排名只是根据完成的题数排序,没有考虑 每题的分值,所以并不是最后的排名。给定录取分数线,请你写程序找出最后通过分数线的 考生,并将他们的成绩按降序打印。 Input测试输入包含若干场考试的信息。每场考试信息的第1行给出考生人数N ( 0 名考生原创 2016-01-15 16:05:25 · 353 阅读 · 0 评论 -
GPA
Problem DescriptionEach course grade is one of the following five letters: A, B, C, D, and F. (Note that there is no grade E.) The grade A indicates superior achievement , whereas F stands for fai原创 2016-01-13 20:29:50 · 352 阅读 · 0 评论 -
Quicksum
Problem DescriptionA checksum is an algorithm that scans a packet of data and returns a single number. The idea is that if the packet is changed, the checksum will also change, so checksums are of原创 2016-01-13 20:27:10 · 209 阅读 · 0 评论 -
Buildings
Problem DescriptionWe divide the HZNU Campus into N*M grids. As you can see from the picture below, the green grids represent the buidings. Given the size of the HZNU Campus, and the color of each原创 2016-01-13 20:25:42 · 273 阅读 · 0 评论 -
find your present (2)
Time Limit: 1000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7476 Accepted Submission(s): 1982 Problem DescriptionIn the new year pa原创 2016-01-13 20:13:36 · 380 阅读 · 1 评论 -
The Seven Percent Solution
Problem DescriptionUniform Resource Identifiers (or URIs) are strings like http://icpc.baylor.edu/icpc/, mailto:foo@bar.org, ftp://127.0.0.1/pub/linux, or even just readme.txt that are used to ide原创 2016-01-08 22:07:35 · 628 阅读 · 0 评论 -
找新朋友(欧拉函数)
http://acm.hdu.edu.cn/game/entry/problem/show.php?chapterid=2§ionid=1&problemid=8Problem Description新年快到了,“猪头帮协会”准备搞一个聚会,已经知道现有会员N人,把会员从1到N编号,其中会长的号码是N号,凡是和会长是老朋友的,那么该会员的号码肯定和N有大于1的公原创 2016-01-20 19:37:36 · 370 阅读 · 0 评论 -
求最大公约数和最小公倍数
递归实现,辗转相除法。#include using namespace std;int gcd(int a, int b){ if(a % b == 0) return b; else{ int temp = b; b = a % b; a = temp; gcd(a, b);原创 2016-01-16 10:54:34 · 300 阅读 · 0 评论 -
老人真是饿了(贪心)
对于幸存的灾民来说,最急待解决的显然是温饱问题,救灾部队一边在组织人员全力打通交通,一边在组织采购粮食。现在假设下拨了一定数量的救灾经费要去市场采购大米(散装)。如果市场有m种大米,各种大米的单价和重量已知,请问,为了满足更多灾民的需求,最多能采购多少重量的大米呢? Input输入数据首先包含一个正整数C,表示有C组测试用例,每组测试用例的第一行是两原创 2016-01-15 20:28:32 · 446 阅读 · 0 评论 -
decimal system
Problem DescriptionAs we know , we always use the decimal system in our common life, even using the computer. If we want to calculate the value that 3 plus 9, we just import 3 and 9.after calculat原创 2016-01-13 21:26:49 · 252 阅读 · 0 评论