sort排序
文章平均质量分 79
Rechard_chen
不积跬步无以至千里。
展开
-
排序算法
Problem DescriptionOne of the fundamental problems of computer science is ordering a list of items. There're a plethora of solutions to this problem, known as sorting algorithms. Some sorting algo原创 2014-07-15 12:07:14 · 488 阅读 · 0 评论 -
你准备好了吗?
Problem DescriptionIs this your first times participating in this kind of contest? I think most of you will answer “Yes”. So let’s do this problem as warm-up and check whether the PC^2 work proper原创 2014-07-24 11:41:29 · 534 阅读 · 0 评论 -
H-index因子
Problem DescriptionPaper quality and quantity have long been used to measure a research's scientific productivity and scientific impact. Citation, which is the total times a paper has been cited,原创 2014-07-23 17:14:15 · 752 阅读 · 0 评论 -
装载问题
Problem Description在一批共n个集装箱要装上艘载重量为c的轮船,其中集装箱i的重量为wi。找出一种最优装载方案,将轮船尽可能装满,即在装载体积不受限制的情况下,将尽可能重的集装箱装上轮船。Input输入有多组数据,每组数据的第一行有两个正整数n和c。n是集装箱数,c是轮船的载重量。接下来的1行中有n个正整数,表示集装箱的重量。Output对于每组数据输原创 2014-09-02 16:13:54 · 622 阅读 · 0 评论 -
奖学金
Problem Description某小学最近得到了一笔赞助,打算拿出其中一部分为学习成绩优秀的前5名学生发奖学金。期末,每个学生都有3门课的成绩:语文、数学、英语。先按总分从高到低排序,如果两个同学总分相同,再按语文成绩从高到低排序,如果两个同学总分和语文成绩都相同,那么规定学号小的同学排在前面,这样,每个学生的排序是唯一确定的。任务:先根据输入的3门课的成绩计算总分,然后按上述规则排原创 2014-08-27 14:47:10 · 1888 阅读 · 0 评论 -
Uncle Hey
The annual GaoDaoKuOI (GDKOI), an interesting programming contest, was held several weeks ago. Uncle Hey had been supposed to be a judge, but turned out to be a scheduler, which annoyed him very m原创 2014-08-15 20:14:06 · 507 阅读 · 0 评论