睡眠羊sheep
睡眠羊sheep
全部文章
分类
归档
标签
去牛客网
登录
/
注册
睡眠羊sheep的博客
全部文章
(共8篇)
题解 | 二进制不同位数
#include<bits/stdc++.h> using namespace std; #define int long long int m,n; int fun(int x,int y){// int total=0; int b=x^y;//通过异位运算,不同则为...
2026-01-21
0
11
题解 | 二进制数1
#include<bits/stdc++.h> using namespace std; #define int long long int fun(long long n){ int total=0; while(n>0){ n&=(n-1...
2026-01-21
0
11
题解 | 【模板】二维前缀和
#include<bits/stdc++.h> using namespace std; #define int long long const int N=1010; int prefix[N][N],a[N][N]; int n,m,q; signed main(){ ios...
2026-01-17
0
13
题解 | 植树节
#include<bits/stdc++.h> using namespace std; #define int long long const int N=1e6+5;//N相当于坐标 int diff[N];//diff[b]所以数组内存要以b的大小为准 signed main(){...
2026-01-17
0
15
题解 | 牛牛与切割机
#include<bits/stdc++.h> using namespace std; #define int long long const int N=1e6+10; int a[N],sum[N]; signed main(){ ios::sync_with_s...
2026-01-17
0
15
题解 | 穷哈哈~
#include<bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); int n; cin>>n; ...
2025-12-21
0
24
题解 | 【模板】整数域二分
#include <algorithm> #include<bits/stdc++.h> using namespace std; #define int long long const int N=2e5+10; long long a[N]; int n,m; int t...
2025-12-20
0
22
题解 | 【模板】整数域二分
#include <algorithm> #include<bits/stdc++.h> using namespace std; #define int long long const int N=2e5+10; long long a[N]; int n,m; int t...
2025-12-20
0
23