寒假蓝桥训练题
文章平均质量分 78
大二寒假蓝桥训练
海晏河清QAQ
这个作者很懒,什么都没留下…
展开
-
Sticks——深搜+剪枝
Stick HDU - 1455 Acwing167题目George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he had originally and how long原创 2021-02-04 16:22:39 · 197 阅读 · 0 评论 -
Prime Ring Problem
Prime Ring Problem HDU - 1016题目A ring is compose of n circles as shown in diagram. Put natural number 1, 2, …, n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.Note: the number of first circle should alw原创 2021-02-04 12:44:18 · 106 阅读 · 0 评论 -
BFS之五道题
题1 Catch that cowFarmer John has been informed of the location of a fugitive cow and wants to catch her immediately. He starts at a point N (0 ≤ N ≤ 100,000) on a number line and the cow is at a poin...原创 2020-01-31 21:13:51 · 282 阅读 · 0 评论 -
DFS之五道题
题目1 Prime Ring ProblemA ring is compose of n circles as shown in diagram. Put natural number 1, 2, …, n into each circle separately, and the sum of numbers in two adjacent circles should be a prime....原创 2020-04-04 17:35:00 · 383 阅读 · 0 评论 -
二分法PI
题目原文My birthday is coming up and traditionally I’m serving pie. Not just one pie, no, I have a number N of them, of various tastes and of various sizes. F of my friends are coming to my party and eac...原创 2020-01-30 16:29:43 · 492 阅读 · 0 评论