02 2019 档案
摘要:昨天偷懒了。。。。。。。。。。 今天的题很妙啊 T-1 题目描述给定一个 个节点的树,节点的标号为 ,边的标号为 。每条边 连接节点 和 ,并且有一个权值 。你可以进行如下的操作若干次。选择一条简单路径以及一个非负整数 ,然后对于每条属于这条路径的边,将它的权值异或上 。你的目标是让所有边的权值变成
阅读全文
摘要:T-3 ```cpp #include<bits/stdc++.h>using namespace std;inline int read(){ int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9') {if(ch=='-')f=-1;ch=getc
阅读全文
摘要:T-1 待填 T-2 这题妙 啊。。。 ```cpp #include<bits/stdc++.h>using namespace std;inline int read(){ int x=0,f=1;char ch=getchar(); while(ch<'0'||ch>'9') {if(ch==
阅读全文
摘要:T-1 count 就是推 的过程有点长(zzk的题解。)我一开始就想错了,结果都白搞。 ```cpp #include<cstdio>using namespace std;typedef long long LL;const int sum[]={0,953821725,270714012,27
阅读全文
摘要:前面还有很大很大很大很大很大的坑要填。卖炭翁要变精卫了。。。。 题目描述 给定 nn组非负整数 a_i, b_iai,bi,求解关于 xx的方程组 的最小非负整数解。 ```cpp #include<bits/stdc++.h>using namespace std;#define ll lon
阅读全文