装糊涂高手_
装糊涂高手_
全部文章
算法入门基础
题解(28)
归档
标签
去牛客网
登录
/
注册
装糊涂高手_的博客
不懂嵌入式的伪OIer
全部文章
/ 算法入门基础
(共2篇)
题解 | #矩阵消除游戏#
思路 枚举行(或列),对列(或行)贪心即可,注意枚举的起点和终点 代码 #include <bits/stdc++.h> #define ios std::ios::sync_with_stdio(false);std::cin.tie(0) using namespace std; ...
枚举
贪心
2024-01-05
0
256
题解 | #[HNOI2003]激光炸弹#
思路 考虑维护一个二维前缀和,每次枚举时仅需枚举炸弹区域的左上角坐标即可, 右下角坐标可通过R得出。 代码 #include <bits/stdc++.h> #define ios std::ios::sync_with_stdio(false);std::cin.tie(0) usin...
枚举
前缀和
2024-01-03
0
308