728x90
반응형

단순 사칙연산 문제이다.

e, f, c = map(int, input().split())
n = (e+f)//c + (e+f)%c
res = (e+f)//c
while n//c:
    res += n//c
    n = n//c + n%c
print(res)
728x90
반응형

+ Recent posts