2017年7月9日

PTA 10-排序5 PAT Judge (25分)

摘要: 题目地址 https://pta.patest.cn/pta/test/16/exam/4/question/677 5-15 PAT Judge (25分) The ranklist of PAT is generated from the status list, which shows the 阅读全文

posted @ 2017-07-09 12:29 gravitykey 阅读(1088) 评论(0) 推荐(0)

PTA 10-排序4 统计工龄 (20分)

摘要: 题目地址 https://pta.patest.cn/pta/test/15/exam/4/question/721 5-13 统计工龄 (20分) 给定公司NN名员工的工龄,要求按工龄增序输出每个工龄段有多少员工。 输入格式: 输入首先给出正整数NN(\le 10^5≤10​5​​),即员工总人数 阅读全文

posted @ 2017-07-09 12:26 gravitykey 阅读(1435) 评论(0) 推荐(0)

PTA 09-排序3 Insertion or Heap Sort (25分)

摘要: 题目地址 https://pta.patest.cn/pta/test/16/exam/4/question/676 5-14 Insertion or Heap Sort (25分) According to Wikipedia: Insertion sort iterates, consumin 阅读全文

posted @ 2017-07-09 12:25 gravitykey 阅读(636) 评论(0) 推荐(0)

PTA 09-排序2 Insert or Merge (25分)

摘要: 题目地址 https://pta.patest.cn/pta/test/16/exam/4/question/675 5-13 Insert or Merge (25分) According to Wikipedia: Insertion sort iterates, consuming one i 阅读全文

posted @ 2017-07-09 12:23 gravitykey 阅读(512) 评论(0) 推荐(0)

PTA 09-排序1 排序 (25分)

摘要: 题目地址 https://pta.patest.cn/pta/test/15/exam/4/question/720 5-12 排序 (25分) 给定NN个(长整型范围内的)整数,要求输出从小到大排序后的结果。 本题旨在测试各种不同的排序算法在各种数据情况下的表现。各组测试数据特点如下: 数据1:只 阅读全文

posted @ 2017-07-09 12:21 gravitykey 阅读(1769) 评论(0) 推荐(0)

PTA 08-图9 关键活动 (30分)

摘要: 题目地址 https://pta.patest.cn/pta/test/15/exam/4/question/719 假定一个工程项目由一组子任务构成,子任务之间有的可以并行执行,有的必须在完成了其它一些子任务后才能执行。“任务调度”包括一组子任务、以及每个子任务可以执行所依赖的子任务集。 比如完成 阅读全文

posted @ 2017-07-09 12:14 gravitykey 阅读(2203) 评论(0) 推荐(0)

PTA 08-图8 How Long Does It Take (25分)

摘要: 题目地址 https://pta.patest.cn/pta/test/16/exam/4/question/674 5-12 How Long Does It Take (25分) Given the relations of all the activities of a project, yo 阅读全文

posted @ 2017-07-09 12:12 gravitykey 阅读(687) 评论(0) 推荐(0)

PTA 08-图7 公路村村通 (30分)

摘要: 题目地址 https://pta.patest.cn/pta/test/15/exam/4/question/718 5-10 公路村村通 (30分) 现有村落间道路的统计数据表中,列出了有可能建设成标准公路的若干条道路的成本,求使每个村落都有公路连通所需要的最低成本。 输入格式: 输入数据包括城镇 阅读全文

posted @ 2017-07-09 12:08 gravitykey 阅读(1774) 评论(0) 推荐(0)

PTA 07-图6 旅游规划 (25分)

摘要: 题目地址 https://pta.patest.cn/pta/test/15/exam/4/question/717 5-9 旅游规划 (25分) 有了一张自驾旅游路线图,你会知道城市间的高速公路长度、以及该公路要收取的过路费。现在需要你写一个程序,帮助前来咨询的游客找一条出发地和目的地之间的最短路 阅读全文

posted @ 2017-07-09 12:04 gravitykey 阅读(1103) 评论(0) 推荐(0)

PTA 07-图5 Saving James Bond - Hard Version (30分)

摘要: 题目地址 https://pta.patest.cn/pta/test/16/exam/4/question/673 5-11 Saving James Bond - Hard Version (30分) This time let us consider the situation in the 阅读全文

posted @ 2017-07-09 12:01 gravitykey 阅读(521) 评论(0) 推荐(0)

导航