题解 | #买房子#
买房子
https://www.nowcoder.com/practice/a4b46b53773e4a8db60b5f7629ce03e9
def buyhoues(n, k): price = 200 flag = 0 for i in range(1, 24): if i == 1: continue else: price = price * (1 + k / 100) s = n*i if price <= s and i < 21: flag = 1 break if flag == 1: print(i) else: print('Impossible') while True: try: N, K = map(int, input().split()) buyhoues(N, K) except: break