_PLGW_ @ 2024-10-29 21:33:10
#include<stdio.h>
int main()
{
int x,y,a,b,i=0;
scanf("%d %d",&x,&y);
for(int P=x;P<=y;P++)
{
for(int Q=x;Q<=y;Q++)
{
if(Q%P==0)
{
a=P;
}
else
{
while(Q%P!=0)
{
Q=P;
P=Q-(Q/P)*P;
}
a=P;
}
b=(P*Q)/a;
if(a!=x||b!=y)
{
continue;
}
else
{
i++;
}
}
}
printf("%d",i);
return 0;
}
by husongtao221 @ 2024-10-29 21:45:12
using namespace std;
无语了
by yn_ko_86 @ 2024-11-30 09:53:29
您学多久了?
by xk2013 @ 2024-12-01 10:07:40
@husongtao221 我看您才是无语了吧,这是 C 语言 ok?
by husongtao221 @ 2024-12-30 17:59:18
那没事了 抱歉啊