摘要: 0<N<5∗106 暴力O3必超时,解决方法:枚举O2的c和d的值采用哈希映射的方式快速找到c和d。 AC代码: #include <bits/stdc++.h> using namespace std; const int maxn = 5000005; pair<int, int> hashes 阅读全文
posted @ 2020-09-21 22:05 funforever 阅读(173) 评论(0) 推荐(0) 编辑