import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int start = sc.nextInt();
int before = sc.nextInt();
int after = sc.nextInt();
int money = start;
int month = 1;
while (money < 70) {
money += before;
month++;
}
while (money< 100) {
money+=after;
month++;
}
System.out.println(month);
}
}
'코딩테스트 > lv0' 카테고리의 다른 글
[프로그래머스 코딩테스트] java Lv.0 피타고라스 정리 (PCCE 기출 문제 2번) (0) | 2024.06.26 |
---|---|
[프로그래머스 코딩테스트] java Lv.0 나이 계산 (PCCE 기출 문제 3번) (0) | 2024.06.26 |
[프로그래머스 코딩테스트] java Lv.0 산책 (PCCE 기출문제 5번) (0) | 2024.06.26 |
[프로그래머스 코딩테스트] java Lv.0 가채점 (PCCE 기출문제 6번) (0) | 2024.06.26 |
[프로그래머스 코딩테스트] java Lv.0 가습기(PCCE 기출문제 7번) (0) | 2024.06.26 |