摘要: 位运算 大数乘法 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 5e5 + 10; LL a, b, p; void solve() { cin >> a >> b >> 阅读全文
posted @ 2022-07-21 18:18 wKingYu 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 线段树 区间修改,区间查询(和) 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 5e5 + 10; int n, m; int w[N]; struct Node { i 阅读全文
posted @ 2022-07-21 17:25 wKingYu 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 线段树,转换为差分数组 单点修改,区间查询(和,最大公约数) 点击查看代码 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int N = 5e5 + 10; int n, m; LL w[N]; st 阅读全文
posted @ 2022-07-21 11:34 wKingYu 阅读(18) 评论(0) 推荐(0) 编辑