- 博客(3)
- 收藏
- 关注
原创 『字典树』xor
题目描述 给出 n 个数 a1..an,求 ai xor aj, (i不等于j) 的最大值 输入 第一行一个数 n 接下一行 n 个数 a1..an 输出 一行一个数 ans, 表示 ai xor aj, (i不等于j) 的最大值 样例输入 4 3 6 7 7 样例输出 5 提示 • 对于 30% 的数据, n ≤ 1000。 • 对于另外 2
2016-11-30 19:05:33
389
原创 『NOIP2016』T4 problem
#include #include #include #include #include #include using namespace std; queue q; struct Tnum { int prime[2001]; int t, num, Min; Tnum() { Min = INT_MAX; } }p[2010], M;
2016-11-29 21:00:44
515
原创 『NOIP2016』T1 toy
#include #include #include using namespace std; struct node { int di ,t; char Names[15]; }p[100100]; int n, m; char c; int work(int t, int di, int num) { if (!p[t].di && !d
2016-11-29 20:47:39
293
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅