摘要:
题面 sslOJ LINK ZOJ LINK 解析 可以考虑通过计算,算出雷达与其他的点的距离,超过半径的点判为不合法的点(因为不论怎样都无法被扫描到,贡献恒为零)。然后枚举每一个合法的点,以雷达和这个点的连线的延长线为标准,判断是属于哪个半圆的点(如果在直径上,那就是属于两个半圆的 阅读全文
摘要:
解析 由于数据太大了, 109 的内存绝对会炸, 所以要用离散化 Code #include <bits/stdc++.h> using namespace std; int n, m, z, x, y; int f[10005]; int find (int x) { while (x 阅读全文
摘要:
解析 这道题是一道冰茶姬的模板题, 不必多言, 直接上代码 Code #include <bits/stdc++.h> using namespace std; int n, m, z, x, y; int f[10005]; int find (int x) { while (x != f[x]) 阅读全文
摘要:
解析 这道题是Trie树, 要求异或的值最大, 就尽可能找不同的 code #include <bits/stdc++.h> #define N 10000005 using namespace std; int a[N][2]; int n, tag = 1, ans; void fd (in 阅读全文