摘要: P2895 [USACO08FEB]Meteor Shower S #include <iostream> #include <cstring> #include <queue> using namespace std; const int N = 310; int x, y, t; int g[N 阅读全文
posted @ 2022-12-30 18:01 Pamper/ 阅读(30) 评论(0) 推荐(0)
摘要: P3395 路障 bfs #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> #include <queue> using namespace std; const int N = 2010; i 阅读全文
posted @ 2022-12-30 13:52 Pamper/ 阅读(61) 评论(0) 推荐(0)
摘要: P8601 [蓝桥杯 2013 省 A] 剪格子 dfs P3395 路障 bfs 阅读全文
posted @ 2022-12-30 12:58 Pamper/ 阅读(130) 评论(0) 推荐(0)
摘要: [蓝桥杯 2013 省 A] 剪格子 [蓝桥杯 2013 省 A] 剪格子 题目描述 如图 $1$ 所示,$3\times 3$ 的格子中填写了一些整数。 我们沿着图中的红色线剪开,得到两个部分,每个部分的数字和都是 $60$。 本题的要求就是请你编程判定:对给定的 $m\times n$ 的格子中 阅读全文
posted @ 2022-12-30 12:55 Pamper/ 阅读(153) 评论(0) 推荐(0)