0
点赞
收藏
分享

微信扫一扫

# include<bits/stdc++.h># include<cmath>typedef long long ll;ll a[3000],cnt;ll n = 2021041820210

秀儿2020 2022-02-11 阅读 20

# include<bits/stdc++.h>蓝桥杯货物摆放
# include<cmath>
typedef long long ll;
ll a[3000],cnt;
ll n = 2021041820210418;
using namespace std;
int  main(){
    for(int i=1;i<=sqrt(n);i++){
        if(n%i==0) {
        a[++cnt]=i;
        if(i*i!=n) a[++cnt]=n/i;}
    }

ll res=0;
for(int l=1;l<=cnt;l++){
    for(int k=1;k<=cnt;k++){
        for(int h=1;h<=cnt;h++){
            if(a[l]*a[k]*a[h]==n)
            res++;
        }
    }
}
cout<<res;
}

举报

相关推荐

0 条评论