热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_44535884
xxh(JL)
5 年前
trueweixin_44535884

#include<iostream>
#include<cstring>
#include<string>
#include<cstdio>
#include<algorithm>
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,k,s=1,t=0;
cin>>a>>b;
if(b%a!=0)
cout<<'0';
else
{
k=b/a;
t=2;
while(k!=1)
{
while(k%t!=0)
t++;
while(k%t==0)
k/=t;
t++;
s*=2;
}
cout<<s;
}
return 0;
}
谁能帮我看看这段代码是什么意思啊

谢谢

CSDN App 扫码分享
分享
评论
1
打赏
  • 复制链接
  • 举报
下一条:
挺难的!!!无论结果怎么样都是收获!!!斌斌加油啊!!!!
立即登录