会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SAOIRSE
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
22
23
24
25
26
27
28
29
30
···
41
下一页
2020年3月20日
PAT (Advanced Level) Practice 1144 The Missing Number (20分)
摘要: 1.题目Given N integers, you are supposed to find the smallest positive integer that is NOT in the given list...
阅读全文
posted @ 2020-03-20 08:48 Jason66661010
阅读(75)
评论(0)
推荐(0)
2020年3月19日
LCA算法实际应用 PAT (Advanced Level) Practice 1151 LCA in a Binary Tree (30分) 四种方法完成题目+tarjan详细讲解!
摘要: 1.题目The lowest common ancestor (LCA) of two nodes U and V in a tree is the deepest node that has both U an...
阅读全文
posted @ 2020-03-19 21:49 Jason66661010
阅读(138)
评论(0)
推荐(0)
2020年3月16日
记笔记最好用的超高颜值软件之一!Typora 你值得拥有!
摘要: 之前一直在寻找一款比较好用的记笔记软件,OneNote很强大,但是有时总是出现同步失败的问题,而且对代码类型的笔记不太友好。之后意外了解到markdown(一种富文本的记笔记形式),类似CSDN,于是就了解到Ty...
阅读全文
posted @ 2020-03-16 14:54 Jason66661010
阅读(1064)
评论(0)
推荐(0)
2020年3月13日
PAT (Advanced Level) Practice 1150 Travelling Salesman Problem (25分) (正常思路)
摘要: 1.题目The "travelling salesman problem" asks the following question: "Given a list of cities and the distanc...
阅读全文
posted @ 2020-03-13 10:12 Jason66661010
阅读(104)
评论(0)
推荐(0)
2020年3月12日
PAT (Advanced Level) Practice 1154 Vertex Coloring (25分) (直接存边遍历)
摘要: 1.题目A proper vertex coloring is a labeling of the graph's vertices with colors such that no two vertices s...
阅读全文
posted @ 2020-03-12 22:47 Jason66661010
阅读(117)
评论(0)
推荐(0)
PAT (Advanced Level) Practice 1155 Heap Paths (30分) (递归+数组建树,递归+vector输出,make_heap判断)
摘要: 1.题目In computer science, a heap is a specialized tree-based data structure that satisfies the heap propert...
阅读全文
posted @ 2020-03-12 19:28 Jason66661010
阅读(129)
评论(0)
推荐(0)
2020年3月9日
PAT (Basic Level) Practice (中文) 1095 解码PAT准考证 (25分) (unordered_map的使用 多做几遍!!)
摘要: 1.题目PAT 准考证号由 4 部分组成:第 1 位是级别,即 T 代表顶级;A 代表甲级;B 代表乙级; 第 2~4 位是考场编号,范围从 101 到 999; 第 5~10 位是考试日期,格式为年、月、日顺次...
阅读全文
posted @ 2020-03-09 17:29 Jason66661010
阅读(164)
评论(0)
推荐(0)
1094 谷歌的招聘 (20分) (有小问题待大神求解!!!!!!!!!!!!)
摘要: 1.题目本题要求你编程解决一个更通用的问题:从任一给定的长度为 L 的数字中,找出最早出现的 K 位连续数字所组成的素数。输入格式:输入在第一行给出 2 个正整数,分别是 L(不超过 1000 的正整数,为数字长...
阅读全文
posted @ 2020-03-09 12:10 Jason66661010
阅读(361)
评论(2)
推荐(0)
PAT (Basic Level) Practice (中文) 1093 字符串A+B (20分)
摘要: 1.题目给定两个字符串 A 和 B,本题要求你输出 A+B,即两个字符串的并集。要求先输出 A,再输出 B,但重复的字符必须被剔除。输入格式:输入在两行中分别给出 A 和 B,均为长度不超过 106的、由可...
阅读全文
posted @ 2020-03-09 10:51 Jason66661010
阅读(114)
评论(0)
推荐(0)
PAT (Basic Level) Practice (中文)1092 最好吃的月饼 (20分)
摘要: 1.题目月饼是久负盛名的中国传统糕点之一,自唐朝以来,已经发展出几百品种。若想评比出一种“最好吃”的月饼,那势必在吃货界引发一场腥风血雨…… 在这里我们用数字说话,给出全国各地各种月饼的销量,要求你从中找出销量冠...
阅读全文
posted @ 2020-03-09 10:39 Jason66661010
阅读(121)
评论(0)
推荐(0)
上一页
1
···
22
23
24
25
26
27
28
29
30
···
41
下一页
公告