Pro.ID22457 TitleNot So Flat After All Title链接http://10.20.2.8/oj/exercise/problem?problem_id=22457 AC1 Submit2 Ratio50.00% 时间&空间限制描述Any positive integer v can be written as where pi is a prime number and ai >= 0. For example: 输入Your program will be tested on one or more test cases. Each test case is specified on a line with two positive integers (0 < A, B < 1, 000, 000) where A * B > 1. The last line is made of two zeros. 输出Description Any positive integer v can be written as where pi is a prime number and ai >= 0. For example: Input Your program will be tested on one or more test cases. Each test case is specified on a line with two positive integers (0 < A, B < 1, 000, 000) where A * B > 1. The last line is made of two zeros. Output For each test case, print the following line: k. X:D Where k is the test case number (starting at one,) X is the minimum ordinal needed in a space that both A and B can be plotted in. D is the distance between these two points. Sample Input 168 882 770 792 0 0 Sample Output 1. 3:4 2. 5:6 Source 样例输入168 882 770 792 0 0 样例输出1. 3:4 2. 5:6 作者 |