최종 제출 코드
import math
a, b, c = map(float, input().split())
# ZeroDivisionError 발생
if c-b==0:
print(-1)
else:
x = a/(c-b)
if x < 0:
print(-1)
else:
print(math.floor(x+1))
수정 전 코드
import math
a, b, c = map(float, input().split())
x = a/(c-b)
if x < 0:
print(-1)
else:
print(math.floor(x+1))
c-b가 0일 경우 ZeroDivisionError 발생