
PAT
韵然CP
用最简单的语言注释程序
展开
-
PTA 1154 Vertex Coloring
Aproper vertex coloringis 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 mostkcolors is called a (proper)k...原创 2020-02-01 11:30:21 · 391 阅读 · 0 评论 -
PAT 1135 Is It A Red-Black Tree
There is a kind of balanced binary search tree named red-black tree in the data structure. It has the following 5 properties: (1) Every node is either red or black. (2) The root is black. (3) Every...原创 2020-01-14 17:31:02 · 442 阅读 · 0 评论 -
PAT 1152 Google Recruitment
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-digi...原创 2020-01-10 16:11:13 · 144 阅读 · 0 评论 -
PAT甲级 英文词组翻译
数据的要求 standard format 标准格式 a pair of 一双(一般是每组测试有两个数) rearrange 重新排列 数据描述 polynomial 多项式 exponent 指数 coefficient 系数 respectively 依次为...原创 2020-01-10 11:03:56 · 721 阅读 · 0 评论 -
PAT 1001 A+B Format
Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits). Input Specification: Each input ...原创 2020-01-09 21:08:24 · 193 阅读 · 0 评论