結果

問題 No.1048 Zero (Advanced)
ユーザー joybeeee
提出日時 2020-05-12 17:01:37
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 2,057 ms
コンパイル使用メモリ 74,308 KB
実行使用メモリ 54,288 KB
最終ジャッジ日時 2024-09-13 15:16:12
合計ジャッジ時間 5,463 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 13 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String args[]) throws Exception {
        Scanner sc = new Scanner(System.in);
        int l = sc.nextInt();
        long r = sc.nextInt();
        int m = sc.nextInt();
        int k = sc.nextInt();

        System.out.println((l % m) <= m && m <= r * (k-1) || l <= m && m <= r * k || k == 0 ? "Yes" : "No");
    }
}
0