龚彦泽
龚彦泽
全部文章
分类
归档
标签
去牛客网
登录
/
注册
龚彦泽的博客
全部文章
(共12篇)
题解 | 【模板】动态区间和Ⅰ ‖ 单点修改 + 区间查询
#include <bits/stdc++.h> #define int long long #define lowbit(x) x & -x using namespace std; int n, m, a, op, x, y, tr[500005]; inline void ...
2026-05-20
0
22
题解 | 【模板】最近公共祖先(LCA)
#include <bits/stdc++.h> using namespace std; const int maxn = 5e5 + 5; // 最大节点数 struct Edge { ...
2026-05-13
0
25
题解 | 小红的数组
#include <bits/stdc++.h> #define int long long using namespace std; int n, k, a[300005], ans1, ans2, ans3, l1, l2; signed main() { ios::sync...
2026-04-06
0
73
题解 | Hello Nowcoder
#include <bits/stdc++.h> using namespace std; int main() { cout << "Hello Nowcoder!"; return 0; }
2026-04-04
0
42
题解 | 浮木博弈
#include <bits/stdc++.h> using namespace std; int t, n, a[100005]; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); ...
2026-03-27
0
47
题解 | 游游的最长稳定子数组
#include<bits/stdc++.h> using namespace std; int n, a[100005], b[100005], sum = 1, x; int main() { cin >> n; for (int i = 0; i <...
2026-03-22
0
38
题解 | 小红的删数字
#include <bits/stdc++.h> using namespace std; string x; array<int, 3> cnt = {}; int sum; bool f() { if (cnt[sum] == 0) { retur...
2026-03-21
0
45
题解 | 【模板】Nim游戏
#include <bits/stdc++.h> #define int long long using namespace std; int t, x; signed main() { ios::sync_with_stdio(0); cin.tie(0); c...
2026-03-21
0
44
题解 | 红色和紫色
#include <bits/stdc++.h> using namespace std; int n, m; int main() { cin >> n >> m; cout << (n * m % 2 == 0 ? "yu...
2026-03-21
0
49
题解 | 【模板】扩展巴什博弈
#include <bits/stdc++.h> using namespace std; int t, n, l, r; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); cin...
2026-03-21
0
39
首页
上一页
1
2
下一页
末页