思路: 直接运用唯一分解定理可解。
唯一分解定理:传送门(点我)
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
ll a[200],ans=1,n;
int main()
{
for(int i=2;i<=100;i++){
n=i;
for(int j=2;j<=n;j++){
while(n%j==0)a[j]++,n/=j;}
}
for(int i=2;i<=100;i++)if(a[i])ans*=(a[i]+1);
return cout<<ans<<endl,0;
}
输出答案:39001250856960000