caozq1
caozq1
全部文章
分类
归档
标签
去牛客网
登录
/
注册
caozq1的博客
全部文章
(共3篇)
题解 | #排座椅#
贪心 + 模拟 即可 #include <bits/stdc++.h> using namespace std; const int N = 1e6 + 10; int n, m, k, l, p; struct line { int s; int t; int...
2025-12-21
0
15
题解 | 【模板】静态区间最值
妥妥的线段树 / ST表板子题。 本蒟蒻写题时脑子抽了没想到简洁的ST表写法。 只好写线段树了。。 #include<bits/stdc++.h> using namespace std; const int N = 4e6 + 10; int a[N]; int maxx[N]; i...
2025-12-14
2
32
题解 | #舞萌时间到!#
前缀和板子题,顶多橙题。适合像我一样的蒟蒻练手。。 #include<bits/stdc++.h> using namespace std; const int N = 1E6 + 10; int sum[N]; string s; int q; int main(){ cin &g...
2025-12-08
0
19