diff --git a/openjudge/323/2400011491.md b/openjudge/323/2400011491.md new file mode 100644 index 00000000..40837f83 --- /dev/null +++ b/openjudge/323/2400011491.md @@ -0,0 +1,14 @@ +# 状态: [Accepted](http://dsbpython.openjudge.cn/dspythonbook/solution/49114558/) + +``` +基本信息 +#:49326210 +题目:250603 +提交人:2400011491王思杰(24n2400011491) +内存:9276kB +时间:134ms +语言:Python3 +提交时间:2025-06-02 15:45:21 +``` +# 思路 +用bfs递归,在剪枝后能达到 \ No newline at end of file diff --git a/openjudge/323/2400011491.py b/openjudge/323/2400011491.py new file mode 100644 index 00000000..bfd2c050 --- /dev/null +++ b/openjudge/323/2400011491.py @@ -0,0 +1,25 @@ +from collections import deque + +def bfs(plat,n,k): + q=deque([(0,0,0)]) + ans = 0 + while q:#确定当前位置 + for _ in range(len(q)): + l,m,placed=q.popleft() + if placed==k: + ans+=1 + continue + if n - m < k - placed: + continue + for i in range(n): + if not l & 1<