Description: Problem Description: 6 × 9 = 42 for the metric system is wrong, but 13 M is correct. That is, 6 (13) × 9 (13) = 42 (13), while 42 (13) = 54 (10). Your task is to write a program to read three integers p, q, r, and then to identify a band B (2 <= B <= 16) makes p × q = r. If B have many choices, output the smallest one. For example: p = 11, q == 11, r = 121. There are 11 (3) × 11 (3) = 121 (3), because 11 (3) = 4 (10) and 121 (3) = 16 (10). Under the circumstances, should the output 3. If there are no suitable notation, then output 0.
To Search:
File list (Check if you may need any files):
cshixian.txt