牛客713450397号
牛客713450397号
全部文章
分类
题解(6)
归档
标签
去牛客网
登录
/
注册
sj
全部文章
(共6篇)
题解|01回文
#include<bits/stdc++.h> using namespace std; int main(){ /*ios::sync_with_stdio(false); cin.tie(nullptr) ...
2026-02-07
0
21
题解|x?y?n!
#include<bits/stdc++.h> using namespace std; int T; int main(){ ios::sync_with_stdio(false); &...
2026-02-07
0
20
题解|01矩阵
#include<bits/stdc++.h> using namespace std; int n; int a[1024][1024];//全局变量的数组 int main(){ ios...
2026-02-07
0
19
题解|NCPC
#include<bits/stdc++.h> using namespace std; int T,n; int main(){ ios::sync_with_stdio(false);  ...
贪心
2026-02-07
0
24
题解|枚举 · 例7-【模板】差分
此题不易每次都进行更新,可以采用差分加前缀和的方法,凡是遇见区间问题,想办法转换为端点问题,或者多个小区间 在传入a数组之后,将此项与前一项的差值算出来,然后之后每次在第l处加d,在r+1处-d,最后用前缀和算出每一项的值
C++
2026-02-02
0
24
题解|枚举 · 例5-【模板】静态区间和(前缀和)
#include<bits/stdc++.h> using namespace std; int main(){ int n,q; scanf("%d %d",&n,&q); vector...
C++
2026-02-02
0
24