题目链接 #题目大意 求n个数的子序列的最大异或和。 #解题思路 求出n个数的线性基并排序,然后将k二进制异或上线性基中对应的代表元素即可。 #代码 const int maxn = 2e5+10; ll arr[maxn]; vector<ll> b; //b中存的每个二进制位的代表元素 void ...
分类:
其他好文 时间:
2021-06-02 13:29:58
阅读次数:
0
网上很多设置~/.bashrc或者/etc/profile的帖子,但是当我们使用ENTRYPOINT会失效,使用CMD格式的话有导致丢失启动参数。 这里"Using an entrypoint script"来实现该功能。 实现alias ll='ls -al' 编写ll命令文件: ll #!/bi ...
分类:
其他好文 时间:
2021-06-02 11:58:17
阅读次数:
0
编辑:LL APT60DQ120BG ASEMI超快恢复二极管60A 1200V 品牌:ASEMI 型号:APT60DQ120BG 封装:TO-247 电性参数:60A 1200V 产品类型:大功率、超快软恢复二极管 正向电流:60A 反向耐压:12 00V 恢复时间:30ns 芯片个数:1 引脚数 ...
分类:
其他好文 时间:
2021-06-02 11:53:52
阅读次数:
0
#include<bits/stdc++.h> using namespace std; typedef long long ll; namespace MCMF { const int MAXN = 10000, MAXM = 10000, INF = 0x7fffffff; int head[M ...
分类:
其他好文 时间:
2021-05-25 17:42:56
阅读次数:
0
约定:以下字符串下标从1开始,令$n=|s|$ 对于字符串$s_{1}$和$s_{2}$,定义以下信息—— 定义$s_{1}\approx s_{2}$当且仅当$s_{1}[1,l]=s_{2}[1,l]$(其中$l=\min(|s_{1}|,|s_{2}|)$) 定义$s_{1}\ll s_{2} ...
分类:
其他好文 时间:
2021-05-24 16:53:45
阅读次数:
0
#include <iostream> #include <cstring> #include <cmath> using namespace std; using ll=long long ; const int maxn=1e3+10; int dp[maxn][maxn]; int sum[m ...
分类:
其他好文 时间:
2021-05-24 13:59:03
阅读次数:
0
本章要点 文法和语言的基本知识 自上而下的分析方法:预测分析,非递归的预测分析,LL(1)文法 自下而上的分析方法:SLR(1)方法,规范LR(1)方法和LALR(1)方法 LR方法如何用于二义文法 ...
分类:
其他好文 时间:
2021-05-24 12:30:45
阅读次数:
0
思路: 图论。参考了https://codeforces.com/blog/entry/71080。 实现: 1 #include<bits/stdc++.h> 2 using namespace std; 3 typedef long long ll; 4 const ll INF = 0x3f3 ...
分类:
其他好文 时间:
2021-05-24 08:39:17
阅读次数:
0
存个链式hash表的板子 比较好清空 const int MAXM=1e7+7; struct{ int next[MAXM],head[MAXM],ans[MAXM],size; ll state[MAXM]; void init(){ size=0; memset(head,0,sizeof(h ...
分类:
其他好文 时间:
2021-05-24 06:00:13
阅读次数:
0
LL qpow(LL x,LL y){ LL ans = 1; for(;y;y>>=1){ if(y&1) ans = (ans*x)%mod; x = (x*x)%mod; } return ans%mod; } LL inv(LL x,LL y){ // x/y; return ( (x%mo ...
分类:
其他好文 时间:
2021-05-24 05:25:54
阅读次数:
0