正文
增加 1 行删除 1 行
194 行未改动全部展开195196197198199200201202203200 行未改动全部展开194 行未改动全部展开# [CF1101D GCD Counting](https://www.luogu.com.cn/problem/CF1101D)对 gcd 有要求,可以转换为枚举因数。不同的因数个数最多只有 13,因此对于每个因数进行 getdis,若不含这个因数就直接退出。这样仅添加一个常数,时间复杂度依然为 $O(n \log n)$。::::infoc[code]```cpp#include <bits/stdc++.h>#define int long long200 行未改动全部展开194 行未改动全部展开195196197198199200201202203200 行未改动全部展开194 行未改动全部展开# [CF1101D GCD Counting](https://www.luogu.com.cn/problem/CF1101D)对 gcd 有要求,可以转换为枚举因数。不同的因数个数最多只有 13,因此对于每个因数进行 getdis,若不含这个因数就直接退出。这样仅添加一个常数,时间复杂度依然为 $O(n \log n)$。::::info[code]```cpp#include <bits/stdc++.h>#define int long long200 行未改动全部展开