
ICPC contest
codancer
为信仰而战斗
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
The Preliminary Contest for ICPC Asia Nanjing 2019
A.The beautiful values of the palace 首先对于每个(x,y)(x,y)(x,y),我们可以O(1)O(1)O(1)的查询出这个坐标的值。接下来就将问题转化为了一个106⋅10610^6 \cdot 10^6106⋅106的矩阵,每次查询子矩阵内的点的和。 考虑将所有的yyy离散化,计mpi,jmp_{i,j}mpi,j表示(1,1)−(i,j)(1,1)-(i...原创 2019-09-04 11:08:53 · 300 阅读 · 0 评论 -
The Preliminary Contest for ICPC Asia Xuzhou 2019
B.so easy 并查集,可能会卡掉map,建议使用unordered_map。 #include<bits/stdc++.h> using namespace std; const int N = 1e6+100; const int mod = 1e9+7; typedef long long ll; const int INF = 0x3f3f3f3f; const ll ll...原创 2019-09-09 17:24:15 · 274 阅读 · 0 评论