백준 2869번(Java)

박은지·2025년 2월 4일
0

백준

목록 보기
11/89
post-thumbnail

import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {
		Scanner scan = new Scanner(System.in);
		
		int A = scan.nextInt();
		int B = scan.nextInt();
		int V = scan.nextInt();
		
		int result = (V - B) / (A - B);
		
		if((V - B) % (A - B) != 0) {
			result++;
		}
		
		System.out.println(result);
	}
}
profile
백엔드 개발자가 되고싶은 eunzi😊

0개의 댓글