
pat甲级
方偲~
大佬养成中...
展开
-
pat-1149 Dangerous Goods Packaging(25)(用个flag数组就行的超简单法)
When shipping goods with containers, we have to be careful not to pack some incompatible goods into the same container, or we might get ourselves in serious trouble. For example, oxidizing agent (...原创 2018-09-09 16:48:04 · 263 阅读 · 0 评论 -
【PAT甲级】1148 Werewolf - Simple Version (20 分)(枚举,思维)
学习博客链接 Werewolf(狼人杀) is a game in which the players are partitioned into two parties: the werewolves and the human beings. Suppose that in a game, player #1 said: “Player #2 is a werewolf.”; playe...原创 2019-02-27 16:24:19 · 296 阅读 · 0 评论 -
【PAT甲级】1125 Chain the Ropes (25 分)(思维)
Given some segments of rope, you are supposed to chain them into one rope. Each time you may only fold two segments into loops and chain them into one piece, as shown by the figure. The resulting cha...原创 2019-03-01 20:19:36 · 180 阅读 · 0 评论 -
【PAT甲级】1154 Vertex Coloring (25 分)(set容器)
1154 Vertex Coloring (25 分) 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 ...原创 2019-02-27 13:50:35 · 188 阅读 · 0 评论