Codeforces Round #626 (Div. 2, based on Moscow Open Olympiad in Informatics)
B.Count Subrectangles
思路:
存因子到数组中
遍历因子算满足该因子个数的行和另一因子个数的列分别为多少相乘即可。
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int>P;
const double eps = 1e-8;
cons...
原创
2020-03-08 02:10:25 ·
165 阅读 ·
0 评论