![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PTA甲级
文章平均质量分 86
浙江大学计算机程序设计能力考试(Programming Ability Test,简称PAT)是由浙江大学计算机科学与技术学院组织的统一考试,旨在培养和展现学生分析问题、解决问题和计算机程序设计的能力,科学评价计算机程序设计人才,并为企业选拔人才提供参考标准。
浪漫世界值得孤身qwq
这个作者很懒,什么都没留下…
展开
-
算法初步-排序:PAT A1075 PAT Judge (25 分)
算法初步-排序:PAT A1075 PAT Judge (25 分)题目题解 题目 The ranklist of PAT is generated from the status list, which shows the scores of the submissions. This time you are supposed to generate the ranklist for PAT. Input Specification: Output Specification: For each t原创 2021-10-24 02:48:15 · 73 阅读 · 0 评论 -
入门模拟-简单模拟:1046 Shortest Distance (20 分)
入门模拟-简单模拟:1046 Shortest Distance (20 分) 题目题解1、解法一(最后一个测试点timeover)2、解法二小结 题目 The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of exits. Input Specification: O原创 2021-09-22 09:38:19 · 91 阅读 · 0 评论 -
入门模拟-简单模拟:PAT A1042 Shuffling Machine (20 分)
入门模拟-简单模拟:PAT A1042 Shuffling Machine (20 分) 题目题解1、解法一2、解法二 题目 题解 1、解法一 没看算法书上面的题解前,自己列举法暴力AC:使用String容器装入54字符串,根据洗牌次数,运用两个字符串来回赋值,这里的来回对调赋值思路很好,不用算法笔记上的next[ ]数组作为中间寄存变量,最后根据洗牌次数选择输出. #include<iostream> #include<vector> #include<string&g原创 2021-09-19 00:24:14 · 92 阅读 · 0 评论