python-algorithm
[백준] 4998
무적김두칠
2021. 1. 8. 15:10
1
2
3
4
5
6
7
8
9
10
11
|
import sys
try:
while True:
cnt =1
a,b,c=map(float, sys.stdin.readline().split())
while True:
if a*(1+b/100) > c: print(cnt); break
else:
a*=(1+b/100)
cnt+=1
except : exit()
|
cs |
반응형