代码如下:
#include<iostream>
#include<vector>
#include<algorithm>
using namespace std;
typedef long long ll;
vector<ll> v;
int main() {
ll x = 2021041820210418;
ll ans = 0;
for (int i = 1; i <= x / i; i ++) {
if(x % i == 0) {
v.push_back(i);
if(i != x / i) {
v.push_back(x / i);
}
}
}
for (int i = 0; i < v.size(); i ++) {
for (int j = 0; j < v.size(); j ++){
for (int k = 0; k < v.size(); k ++) {
if(v[i]*v[j]*v[k] == x)
ans++;
}
}
}
cout << ans; // ans = 2430
return 0;
}