Skip to content

PCCE Savings

1. Problem

해당 문제는 여기에서 확인하실 수 있습니다.

2. Answer

start = int(input())
before = int(input())
after = int(input())

money = start
month = 1

# money가 70 미만일 동안은 'before' 금액만큼 저축
while money < 70:
  money += before
  month += 1

# money가 100 미만일 동안은 'after' 금액만큼 저축
while money < 100:
  money += after
  month += 1

print(month)