随笔分类 -  PTA甲级

我刷过的PTA考试题
摘要:@ 强烈推荐,刷PTA的朋友都认识一下柳神--PTA解法大佬 本文由参考于柳神博客写成 柳神的CSDN博客,这个可以搜索文章 柳神的个人博客,这个没有广告,但是不能搜索 PS 题目原文 The highest building in our city has only one elevator. A 阅读全文
posted @ 2020-08-24 21:16 黄鹏宇 阅读(166) 评论(0) 推荐(0)
摘要:强烈推荐,刷PTA的朋友都认识一下柳神--PTA解法大佬 本文由参考于柳神博客写成 柳神的CSDN博客,这个可以搜索文章 柳神的个人博客,这个没有广告,但是不能搜索 这题还有一个大佬的博客 就是他发现了数据的错误-- 地址如下 题目原文 1104Sum of Number Segments(20分) 阅读全文
posted @ 2020-07-03 23:11 黄鹏宇 阅读(168) 评论(0) 推荐(0)
摘要:题目原文 For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non- 阅读全文
posted @ 2020-07-02 19:26 黄鹏宇 阅读(182) 评论(0) 推荐(0)
摘要:题目原文 If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen si 阅读全文
posted @ 2020-07-02 08:08 黄鹏宇 阅读(132) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 There is a classical process named partition in the famous quick sort algorithm. 阅读全文
posted @ 2020-06-28 09:00 黄鹏宇 阅读(132) 评论(0) 推荐(0)
摘要:题目原文 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 阅读全文
posted @ 2020-06-26 12:35 黄鹏宇 阅读(113) 评论(0) 推荐(0)
摘要:This time, you are supposed to find A+B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2020-06-25 17:52 黄鹏宇 阅读(321) 评论(0) 推荐(0)
摘要:这题用的是柳神的代码 https://me.csdn.net/liuchuo #include <iostream> #include<string> using namespace std; int main() { int a, b; cin >> a >> b; string s = to_s 阅读全文
posted @ 2020-06-25 17:46 黄鹏宇 阅读(161) 评论(0) 推荐(0)
摘要:@ 首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 The string APPAPT contains two PAT's as substrings. The first one is formed by 阅读全文
posted @ 2020-06-25 16:09 黄鹏宇 阅读(285) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 According to Wikipedia: Insertion sort iterates, consuming one input element eac 阅读全文
posted @ 2020-03-31 17:53 黄鹏宇 阅读(271) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Shopping in Mars is quite a different experience. The Mars people pay by chained 阅读全文
posted @ 2020-03-31 11:13 黄鹏宇 阅读(228) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 阅读全文
posted @ 2020-03-31 09:24 黄鹏宇 阅读(272) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1085 Perfect Sequence (25分) Given a sequence of positive integers and another po 阅读全文
posted @ 2020-03-26 15:52 黄鹏宇 阅读(172) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1038 Recover the Smallest Number (30分) Given a collection of number segments, yo 阅读全文
posted @ 2020-03-26 13:01 黄鹏宇 阅读(196) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1067 Sort with Swap(0, i) (25分) Given any permutation of the numbers {0, 1, 2,.. 阅读全文
posted @ 2020-03-26 00:01 黄鹏宇 阅读(195) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 The magic shop in Mars is offering some magic coupons. Each coupon has an intege 阅读全文
posted @ 2020-03-25 21:25 黄鹏宇 阅读(135) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1033 To Fill or Not to Fill (25分) With highways available, driving a car from Ha 阅读全文
posted @ 2020-03-25 19:57 黄鹏宇 阅读(266) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1070 Mooncake (25point(s)) Mooncake is a Chinese bakery product traditionally ea 阅读全文
posted @ 2020-03-25 11:28 黄鹏宇 阅读(175) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Eva would like to make a string of beads with her favorite colors so she went to 阅读全文
posted @ 2020-03-16 10:05 黄鹏宇 阅读(156) 评论(0) 推荐(0)
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 这一篇博客大部分都是借鉴(抄袭)的算法笔记 题目原文 Zhejiang University has 8 campuses and a lot of gates. Fro 阅读全文
posted @ 2020-03-15 14:36 黄鹏宇 阅读(271) 评论(0) 推荐(0)