正文
增加 4 行删除 4 行
138 行未改动全部展开13914014114214314414514614714814915015115215315415515615715815916016116216316416516647 行未改动138 行未改动全部展开```cpp#include <cstdio>#include <algorithm>using namespace std;const int maxn = 3e3 + 5;const int maxp = 4e3 + 5;const int maxk = 1e7 + 5;const int mod = 10007;int n, m, k;int sum, ubound;int dp[maxn][maxp], tar[maxk];int fac[maxp], prime[maxp], fact[maxp][maxp];void dfs(int depth, int val, int nega) {if (depth > prime[0]) {sum += (ubound / val * nega);return;}dfs(depth + 1, val, nega);dfs(depth + 1, val * prime[depth], -nega);}int main() {scanf("%d%d%d", &n, &m, &k);for (int i = 1; i * i <= k; i++) {if (k % i == 0) {47 行未改动138 行未改动全部展开13914014114214314414514614714814915015115215315415515615715815916016116216316416516647 行未改动138 行未改动全部展开```cpp#include <cstdio>#include <algorithm>using namespace std;const int maxn = 3e3 + 5;const int maxp = 4e3 + 5;const int maxk = 1e7 + 5;const int mod = 10007;int n, m, k;int sum, ubound;int dp[maxn][maxp], tar[maxk];int fac[maxp], prime[maxp], fact[maxp][maxp];void dfs(int depth, int val, int nega) {if (depth > prime[0]) {sum += (ubound / val * nega);return;}dfs(depth + 1, val, nega);dfs(depth + 1, val * prime[depth], -nega);}int main() {scanf("%d%d%d", &n, &m, &k);for (int i = 1; i * i <= k; i++) {if (k % i == 0) {47 行未改动