4096: 【01NOIP普及组】最大公约数与最小公倍数
Memory Limit:64 MB
Time Limit:1.000 S
Judge Style:Text Compare
Creator:
Submit:0
Solved:0
Description
二个正整数x0,y0(2≤x0≤100000,2≤y0≤1000000),求满足下列条件的P,Q的个数。 n条件: n1.P,Q是正整数; n2.要求P,Q以x0为最大公约数,以y0为最小公倍数。 n试求:满足条件的所有可能的两个正整数的个数。
Input
输入x0和y0
Output
满足条件的所有可能的两个正整数的个数
Sample Input Copy
3 60
Sample Output Copy
4