Run ID:82216
提交时间:2024-07-13 09:27:27
N = int(input()) for a in range(2, N + 1): for b in range(2, a): for c in range(b, a): x = a ** 3 - b ** 3 - c ** 3 if x < 0: break d = x ** (1 / 3) if 0 <= round(d) - d < 0.0001 and round(d) >= c: print("Cube = {}, Triple = ({},{},{})".format(a, b, c, round(d)))