
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
int a1 = scanner.nextInt();
int a0 = scanner.nextInt();
int c = scanner.nextInt();
int n0 = scanner.nextInt();
if((a1*n0+a0 <= c*n0)&&(a1<=c))
System.out.println(1);
else
System.out.println(0);
scanner.close();
}
}
'Algorithm > Baekjoon' 카테고리의 다른 글
[백준_JAVA_알고리즘] 2231 분해합 (0) | 2024.02.02 |
---|---|
[백준_JAVA_알고리즘] 2798 블랙잭 (0) | 2024.02.02 |
[백준_JAVA_알고리즘] 24267 알고리즘 수업 - 알고리즘의 수행 시간 6 (0) | 2024.02.01 |
[백준_JAVA_알고리즘] 24266 알고리즘 수업 - 알고리즘의 수행 시간 5 (0) | 2024.02.01 |
[백준_JAVA_알고리즘] 24265 알고리즘 수업 - 알고리즘의 수행 시간 4 (1) | 2024.02.01 |