mehencha
mehencha
全部文章
分类
归档
标签
去牛客网
登录
/
注册
mehencha的博客
全部文章
(共6篇)
题解 | 被打乱的异或和
#include<bits/stdc++.h> using namespace std; typedef long long LL; const LL INF=-1e18; int t; int n; int a[105]; //不会技巧的想法就暴力了……orz int main(){ ...
2026-03-25
0
11
题解 | 二进制不同位数
#include<bits/stdc++.h>using namespace std;typedef long long LL;const LL INF=-1e18;LL x,y;int main(){ ios_base::sync_with_stdio(0); cin.ti...
2026-03-25
0
8
题解 | 二进制数1
#include<bits/stdc++.h> using namespace std; typedef long long LL; const LL INF=-1e18; LL x; int main(){ ios_base::sync_with_stdio(0); ...
2026-03-25
0
9
题解 | 小红的排列构造②
#include<bits/stdc++.h> using namespace std; typedef long long LL; const LL INF=-1e18; int n; vector<int> a; int main(){ ios_base::sy...
2026-03-24
0
14
题解 | 斐波那契字符串
#include<bits/stdc++.h> using namespace std; typedef long long LL; LL a[300005],one[300005],zero[300005]; LL t; LL n; void han(){ for(int i=...
2026-03-22
0
11
题解 | 交换到最大
每次都是和离当前数字最近,且交换到当前位置后的数字比任何一个可以交换到当前位置的数字大的那个数字交换。会超时所以要想到距离超过9了就是负数了后面就没必要遍例了 #include<bits/stdc++.h> using namespace std; typedef long long L...
2026-03-15
1
14