PAT甲级
文章平均质量分 80
zclimou
这个作者很懒,什么都没留下…
展开
-
1124 Raffle for Weibo Followers(20 分)(PAT甲级真题)
大佬们大部分都用的map,我只用了string,比map麻烦一点。作为另一种思路,仅供参考。题目如下:John got a full mark on PAT. He was so happy that he decided to hold a raffle(抽奖) for his followers on Weibo -- that is, he would select winners ...原创 2018-08-23 00:57:34 · 257 阅读 · 0 评论 -
1121 Damn Single(25 分)(PAT甲级)
题目描述: "Damn Single (单身狗)" is the Chinese nickname for someone who is being single. You are supposed to find those who are alone in a big party, so they can be taken care of.Input Specification...原创 2018-08-23 18:46:22 · 238 阅读 · 0 评论 -
1152 Google Recruitment (20 point(s)
In July 2004, Google posted on a giant billboard along Highway 101 in Silicon Valley (shown in the picture below) for recruitment. The content is super-simple, a URL consisting of the first 10-digit p...原创 2018-12-09 23:55:17 · 156 阅读 · 0 评论 -
1153 Decode Registration Card of PAT (25 point(s))
A registration card number of PAT consists of 4 parts:the 1st letter represents the test level, namely, T for the top level, A for advance and Bfor basic; the 2nd - 4th digits are the test site num...原创 2018-12-10 12:50:39 · 238 阅读 · 0 评论 -
1155 Heap Paths (30 point(s))
In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of P is either greater than or equal to (i...原创 2018-12-10 17:32:06 · 358 阅读 · 0 评论 -
1154 Vertex Coloring (25 point(s))
A proper vertex coloring is a labeling of the graph's vertices with colors such that no two vertices sharing the same edge have the same color. A coloring using at most k colors is called a (proper) k...原创 2018-12-10 18:25:09 · 354 阅读 · 0 评论