摘要:
Problem A 乱搞一下就可以了。 代码 #pragma GCC optimize(2) #include<bits/stdc++.h> using namespace std; const int N=55; int n,a[N],b[N],cnt[N],res=0; void dfs(int 阅读全文
摘要:
Problem A 关于这道题目你发现你不需要考虑的是分割之后具体的面积是多少,我们可以用叉积计算之后暂时不除以 \(2\) ,最后判断一下奇偶性就可以了。 考虑这样的话我们就可以直接对于一个右(这里的左右实际上就是凸包上点的遍历顺序)端点,把其左端点的值存入一个桶里,发现桶内只需要存 \(x_i\ 阅读全文
摘要:
第一次在赛时 \(\text{AK}\) div2 ,有点感动,不过我相信很快就会 \(\text{fst}\) 光的。 Problem A 你就取个模就好了? 代码 #include<bits/stdc++.h> using namespace std; #define int long long 阅读全文