nqza_h8y1z @ 2024-07-16 14:16:49
#include<bits/stdc++.h>
using namespace std;
long long a,b,i,gys,j,s=0;
int main()
{
cin>>a>>b;
if(a>b) swap(a,b);
for(i=a;i<=b;i++)
{
for(j=a;j<=b;j++)
{
if(i%a==0&&j%a==0&&i*j/a==b&&i%j!=0&&j%i!=0||(i==a&&j==b||j==a&&i==b))
{
s++;
}
}
}
cout<<s;
}
(40pts)
by xiedequan130412 @ 2024-07-24 19:36:50
帮你一下
by xiedequan130412 @ 2024-07-24 19:37:26
壶关~~~
by nqza_h8y1z @ 2024-07-26 08:46:42
栓~Q~
by nqza_h8y1z @ 2024-07-26 08:49:06
好哒。