SORT
yinyeqiqi
只因岁月蒙尘。
展开
-
排序算法
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 algori原创 2014-07-15 16:45:24 · 513 阅读 · 0 评论 -
Uncle Hey
Problem DescriptionThe 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原创 2014-08-19 16:15:09 · 401 阅读 · 0 评论 -
奖学金
Problem Description某小学最近得到了一笔赞助,打算拿出其中一部分为学习成绩优秀的前5名学生发奖学金。期末,每个学生都有3门课的成绩:语文、数学、英语。先按总分从高到低排序,如果两个同学总分相同,再按语文成绩从高到低排序,如果两个同学总分和语文成绩都相同,那么规定学号小的同学排在前面,这样,每个学生的排序是唯一确定的。任务:先根据输入的3门课的成绩计算总原创 2014-08-28 08:24:50 · 795 阅读 · 0 评论