首页 > 其他 > 详细

萨达是否

时间:2017-03-02 13:03:55      阅读:182      评论:0      收藏:0      [点我收藏+]

#include<iostream>
#include<cstdio>
#include<queue>
#include<algorithm>
#include<cmath>
using namespace std;
int a[10001];
int maxn=0;
int now=0;
int tot=0;
int main()
{
int x0,y0;
cin>>x0>>y0;
for(int i=2;i<=x0;i++)
{
for(int j=2;j<=y0;j++)
{
if((x0%i==0&&x0%j==0))
{
if(((i*j)/x0)==y0)tot++;
}
}
}
cout<<tot;
return 0;
}

萨达是否

原文:http://www.cnblogs.com/zwfymqz/p/6489852.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!