結果

問題 No.1048 Zero (Advanced)
ユーザー tentententen
提出日時 2021-01-19 09:43:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 385 bytes
コンパイル時間 2,216 ms
コンパイル使用メモリ 71,088 KB
実行使用メモリ 56,072 KB
最終ジャッジ日時 2023-08-22 06:20:51
合計ジャッジ時間 5,653 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
55,540 KB
testcase_01 AC 122 ms
55,984 KB
testcase_02 AC 122 ms
56,072 KB
testcase_03 AC 121 ms
55,492 KB
testcase_04 AC 123 ms
55,884 KB
testcase_05 AC 122 ms
55,748 KB
testcase_06 AC 123 ms
55,884 KB
testcase_07 AC 124 ms
55,520 KB
testcase_08 AC 124 ms
56,052 KB
testcase_09 AC 121 ms
55,388 KB
testcase_10 AC 124 ms
55,948 KB
testcase_11 AC 128 ms
55,728 KB
testcase_12 AC 122 ms
55,524 KB
testcase_13 AC 125 ms
55,732 KB
testcase_14 AC 123 ms
55,688 KB
testcase_15 AC 122 ms
55,580 KB
testcase_16 AC 124 ms
55,540 KB
testcase_17 AC 123 ms
55,864 KB
testcase_18 AC 124 ms
55,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
	public static void main (String[] args) {
		Scanner sc = new Scanner(System.in);
		int left = sc.nextInt();
		int right = sc.nextInt();
		int mod = sc.nextInt();
		long k = sc.nextInt();
		if ((left * k - 1) / mod < right * k / mod || k == 0 || left == 0) {
		    System.out.println("Yes");
		} else {
		    System.out.println("No");
		}
	}
}
0