
queue
文章平均质量分 78
ryo_218
要努力成为别人的依赖呀!
展开
-
PAT 1056 Mice and Rice (25)
1056 Mice and Rice (25)(25 分)Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given map. The goal of ea...原创 2018-08-06 21:10:23 · 144 阅读 · 0 评论 -
PAT 1029 Median (25)
1029 Median (25)(25 分)Given an increasing sequence S of N integers, the median is the number at the middle position. For example, the median of S1 = { 11, 12, 13, 14 } is 12, and the median of S2 = ...原创 2018-09-03 21:04:24 · 128 阅读 · 0 评论 -
PAT 1004 Counting Leaves (30)
1004 Counting Leaves (30)(30 分)A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child.Input Specification:Each input file contain...原创 2018-08-28 22:09:14 · 152 阅读 · 0 评论 -
PAT 1090 Highest Price in Supply Chain (25)
1090 Highest Price in Supply Chain (25)(25 分)A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer....原创 2018-08-08 22:07:18 · 212 阅读 · 0 评论 -
PAT 1079 Total Sales of Supply Chain (25)
1079 Total Sales of Supply Chain (25)(25 分)A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer.St...原创 2018-08-07 15:50:08 · 159 阅读 · 0 评论 -
PAT 1020 Tree Traversals (25)
1020 Tree Traversals (25)(25 分)Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to output the level or...原创 2018-08-11 16:36:08 · 150 阅读 · 0 评论 -
PAT 1099 Build A Binary Search Tree (30)
1099 Build A Binary Search Tree (30)(30 分)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes with ...原创 2018-08-06 21:52:59 · 246 阅读 · 0 评论 -
蓝桥杯 历届试题 青蛙跳杯子
题目:青蛙跳杯子问题描述X星球的流行宠物是青蛙,一般有两种颜色:白色和黑色。X星球的居民喜欢把它们放在一排茶杯里,这样可以观察它们跳来跳去。如下图,有一排杯子,左边的一个是空着的,右边的杯子,每个里边有一只青蛙。*WWWBBB其中,W字母表示白色青蛙,B表示黑色青蛙,*表示空杯子。X星的青蛙很有些癖好,它们只做3个动作之一:1. 跳到相邻的空杯子里。2. 隔着1只其它的...原创 2018-03-31 18:43:23 · 1088 阅读 · 0 评论 -
PAT 1094 The Largest Generation (25)
1094 The Largest Generation (25)(25 分)A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generation. Your task is to find the generat...原创 2018-08-06 17:33:27 · 242 阅读 · 0 评论 -
第十届蓝桥杯省赛C++B组 迷宫
试题 E:迷宫本题总分:15 分【问题描述】 下图给出了一个迷宫的平面图,其中标记为 1 的为障碍,标记为 0 的为可 以通行的地方。010000000100001001110000 迷宫的入口为左上角,出口为右下角,在迷宫中,只能从一个位置走到这 个它的上、下、左、右四个方向之一。 对于上面的迷宫,从入口开始,可以按DRRURRD...原创 2019-03-26 22:20:31 · 5882 阅读 · 14 评论