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
반응형
'Agorithm > 백준 알고리즘' 카테고리의 다른 글
백준 알고리즘 17362번 수학은 체육과목 입니다 2(python) (0) | 2021.02.08 |
---|---|
백준 알고리즘 17009번 Winning Score(python) (0) | 2021.02.08 |
백준 알고리즘 16727번 ICPC(python) (0) | 2021.02.08 |
백준 알고리즘 16693번 Pizza Deal(python) (0) | 2021.02.08 |
백준 알고리즘 16648번 Contemporary Art(python) (0) | 2021.02.08 |