結果

問題 No.1048 Zero (Advanced)
ユーザー silviasetitech
提出日時 2020-05-10 09:21:59
言語 Java
(openjdk 23)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 1,011 bytes
コンパイル時間 2,228 ms
コンパイル使用メモリ 74,584 KB
実行使用メモリ 41,516 KB
最終ジャッジ日時 2024-07-07 04:44:19
合計ジャッジ時間 4,792 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 *
 * @author silviase
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        No1048ZeroAdvanced solver = new No1048ZeroAdvanced();
        solver.solve(1, in, out);
        out.close();
    }

    static class No1048ZeroAdvanced {
        public void solve(int testNumber, Scanner in, PrintWriter out) {

            long l = in.nextLong();
            long r = in.nextLong();
            long m = in.nextLong();
            long k = in.nextLong();

            out.println(k == 0 ? "Yes" : Math.floorDiv(k * r, m) > Math.floorDiv(k * l - 1, m) ? "Yes" : "No");

        }

    }
}

0