-
파이썬 1712개발/알고리즘(백준) 2022. 8. 24. 14:21
fixed, origin, price = map(int, input().split()) if price <= origin: print(-1) else: print(int((fixed/(price-origin))+1))
A, B, C = map(int, input().split()) if B>=C: print(-1) else: print(int(A/(C-B)+1))
'개발 > 알고리즘(백준)' 카테고리의 다른 글
백준 2292 python (0) 2022.08.24 1316 파이썬 백준 (0) 2022.08.24 백준 2941 크로아티아 알파벳 python (0) 2022.08.24 백준 5622번 파이썬 (0) 2022.08.24 백준 2908 (0) 2022.08.23