题解 | #循环数比较#
循环数比较
https://www.nowcoder.com/practice/24575008c6134b6fa4fab8ea0ea82a99
def repeat(x, k): return int(x * k) while True: try: x1, k1, x2, k2 = input().split() str1 = repeat(x1, int(k1)) str2 = repeat(x2, int(k2)) if str1 == str2: print("Equal") elif str1 > str2: print("Greater") else: print("Less") except: break