728x90
반응형

단순 수학 문제이다.

A, B, C = map(int, input().split())
cnt = total = 0
while total < C:
    total += A
    cnt += 1
    if cnt%7 == 0:
        total += B
print(cnt)
728x90
반응형

+ Recent posts