随笔分类 - PTA甲级
我刷过的PTA考试题
摘要:@ 强烈推荐,刷PTA的朋友都认识一下柳神--PTA解法大佬 本文由参考于柳神博客写成 柳神的CSDN博客,这个可以搜索文章 柳神的个人博客,这个没有广告,但是不能搜索 PS 题目原文 The highest building in our city has only one elevator. A
阅读全文
摘要:强烈推荐,刷PTA的朋友都认识一下柳神--PTA解法大佬 本文由参考于柳神博客写成 柳神的CSDN博客,这个可以搜索文章 柳神的个人博客,这个没有广告,但是不能搜索 这题还有一个大佬的博客 就是他发现了数据的错误-- 地址如下 题目原文 1104Sum of Number Segments(20分)
阅读全文
摘要:题目原文 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-
阅读全文
摘要:题目原文 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
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 There is a classical process named partition in the famous quick sort algorithm.
阅读全文
摘要:题目原文 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
阅读全文
摘要: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
阅读全文
摘要:这题用的是柳神的代码 https://me.csdn.net/liuchuo #include <iostream> #include<string> using namespace std; int main() { int a, b; cin >> a >> b; string s = to_s
阅读全文
摘要:@ 首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 The string APPAPT contains two PAT's as substrings. The first one is formed by
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 According to Wikipedia: Insertion sort iterates, consuming one input element eac
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Shopping in Mars is quite a different experience. The Mars people pay by chained
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Given a pair of positive integers, for example, 6 and 110, can this equation 6 =
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1085 Perfect Sequence (25分) Given a sequence of positive integers and another po
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1038 Recover the Smallest Number (30分) Given a collection of number segments, yo
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1067 Sort with Swap(0, i) (25分) Given any permutation of the numbers {0, 1, 2,..
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 The magic shop in Mars is offering some magic coupons. Each coupon has an intege
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1033 To Fill or Not to Fill (25分) With highways available, driving a car from Ha
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 1070 Mooncake (25point(s)) Mooncake is a Chinese bakery product traditionally ea
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 题目原文 Eva would like to make a string of beads with her favorite colors so she went to
阅读全文
摘要:首先,先贴柳神的博客 https://www.liuchuo.net/ 这是地址 想要刷好PTA,强烈推荐柳神的博客,和算法笔记 这一篇博客大部分都是借鉴(抄袭)的算法笔记 题目原文 Zhejiang University has 8 campuses and a lot of gates. Fro
阅读全文

浙公网安备 33010602011771号