pta甲级
每天一点点点点
这个作者很懒,什么都没留下…
展开
-
PTA-甲级 1079 Total Sales of Supply Chain BFS广度优先
PTA-甲级 1079 Total Sales of Supply Chain BFS广度优先 A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in moving a product from supplier to customer. Starting from one root supplier, everyone on the chain b原创 2020-10-13 21:49:29 · 153 阅读 · 0 评论 -
PTA-甲级 1094 The Largest Generation 深度优先
PTA-甲级 1094 The Largest Generation 深度优先 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 generation with the largest population. Input Specification: Ea原创 2020-10-13 20:29:00 · 85 阅读 · 0 评论 -
PTA-甲级 1033 To Fill or Not to Fill(测试点2)
PTA-甲级 1033 To Fill or Not to Fill(测试点2) With highways available, driving a car from Hangzhou to any other city is easy. But since the tank capacity of a car is limited, we have to find gas stations on the way from time to time. Different gas station may g原创 2020-10-12 20:08:03 · 488 阅读 · 1 评论 -
PTA甲级-1057 Stack (超时)
PTA甲级-1057 Stack (超时) Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operations include Push (inserting an element onto the top position) and Pop (deleting the top element). Now原创 2020-10-11 15:48:20 · 143 阅读 · 0 评论