萨达是否

#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;
}

posted @ 2017-03-02 11:53  自为风月马前卒  阅读(104)  评论(0编辑  收藏  举报

Contact with me