
PAT甲级
文章平均质量分 89
秋包
这个作者很懒,什么都没留下…
展开
-
1026 Table Tennis (30 分)-------C语言
A table tennis club has N tables available to the public. The tables are numbered from 1 to N. For any pair of players, if there are some tables open when they arrive, they will be assigned to the available table with the smallest number. If all the tables原创 2021-09-01 19:00:23 · 284 阅读 · 0 评论 -
1021 Deepest Root (25 分)------C语言
A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the root that results in a highest tree. Such a root is calledthe deepest root. Input Specification: Each .原创 2021-08-30 16:21:13 · 149 阅读 · 0 评论 -
1014 Waiting in Line (30 分)-----C语言
Suppose a bank hasNwindows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are: The space inside the yellow line in front of each window is enoug..原创 2021-08-28 19:25:35 · 170 阅读 · 0 评论