- 博客(5)
- 收藏
- 关注
原创 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 232
原创 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 114
原创 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 408
原创 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 295
原创 二分法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 505
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人