← Back to List

17283번: I am Groot ↗

Solutions

Python 3
117 B | 117 chars
N = int(input())
P = int(input())
N = N*P//100
S = 0
k = 1
while N>5:
    k*=2
    S += N*k
    N = N*P//100
print(S)