quchen666
quchen666
全部文章
分类
题解(1)
归档
标签
去牛客网
登录
/
注册
quchen
😋
全部文章
(共68篇)
题解 | 【模板】静态区间最值
#include <bits/stdc++.h> using namespace std; const int N = 3e6+10; int q,n; int a[N]; int mx[N],mn[N]; void up(int i) { mx[i] = max(mx[i&l...
2025-12-14
1
46
题解 | 智乃的数字
#include <bits/stdc++.h> using namespace std; typedef long long ll; void solve() { ll k ; cin>>k; if(k==1) { cou...
2025-12-13
1
49
题解 | 大撒币
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); int a,b,r; ...
2025-12-10
1
37
题解 | 小红的 gcd
#include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { string a; ll b; cin>>a>>b; ll res ...
2025-12-02
1
31
题解 | 构造数独
#include <bits/stdc++.h> using namespace std; int n,k; int main() { cin>>n>>k; for(int i=1;i<=n;i++) { fo...
2025-12-01
1
46
题解 | 小红的区间修改(一)
#include <bits/stdc++.h> #include <iostream> using namespace std; typedef long long ll; const int N = 3e5+10; int a[N]; int tree[N]; int l...
2025-11-30
2
46
题解 | 小天的 Minecraft
#include <bits/stdc++.h> using namespace std; typedef long long ll; ll fac[17]; ll C(int n,int m) { return fac[n]/fac[n-m]/fac[m]; } voi...
2025-11-29
1
68
题解 | 小sun的假期
#include <bits/stdc++.h> using namespace std; const int N=1e5+10; typedef long long ll; struct Node { int l,r; }a[N]; bool cmp(Node a,...
2025-11-27
1
37
题解 | 能量辐射
#include <bits/stdc++.h> using namespace std; const int N = 2e5+10; typedef long long ll; ll h[N],w[N]; ll ans[N]; int main() { int n; c...
2025-11-24
1
50
题解 | 最小连通代价
#include <bits/stdc++.h> using namespace std; typedef long long ll; void solve() { ll n,a,b; cin>>n>>a>>b; ll cnt0...
2025-11-23
1
36
首页
上一页
1
2
3
4
5
6
7
下一页
末页