atcoder#CADDI2018A. Product and GCD
Product and GCD
Score : points
Problem Statement
There are integers not less than . The values of are not known, but it is known that .
Find the maximum possible greatest common divisor of .
Constraints
Input
Input is given from Standard Input in the following format:
Output
Print the answer.
3 24
2
The greatest common divisor would be when, for example, and .
5 1
1
As are positive integers, the only possible case is .
1 111
111
4 972439611840
206