装糊涂高手_
装糊涂高手_
全部文章
算法入门基础
题解(28)
归档
标签
去牛客网
登录
/
注册
装糊涂高手_的博客
不懂嵌入式的伪OIer
全部文章
/ 算法入门基础
(共2篇)
题解 | #毒瘤xor#
思路 按位贪心即可,维护一个前缀和统计区间内各数中第i位为1的个数。 代码 #include <bits/stdc++.h> #define ios std::ios::sync_with_stdio(false);std::cin.tie(0) using namespace std;...
贪心
前缀和
2024-01-06
0
238
题解 | #矩阵消除游戏#
思路 枚举行(或列),对列(或行)贪心即可,注意枚举的起点和终点 代码 #include <bits/stdc++.h> #define ios std::ios::sync_with_stdio(false);std::cin.tie(0) using namespace std; ...
枚举
贪心
2024-01-05
0
256