2020牛客暑期多校训练营(第二场)F Fake Maxpooling 单调队列+筛法

筛法求Onm出lcm,而后二维单调队列。ios 细节看代码就懂了c++ #include <bits/stdc++.h> using namespace std; typedef long long ll; #define pb push_back const int M = 5000+7; int a[M][M],b[M][M],q[M]; int main() { ios::sync_w
相关文章
相关标签/搜索