結果

問題 No.1048 Zero (Advanced)
ユーザー silviasetitechsilviasetitech
提出日時 2020-05-10 09:21:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 1,011 bytes
コンパイル時間 3,331 ms
コンパイル使用メモリ 72,100 KB
実行使用メモリ 56,092 KB
最終ジャッジ日時 2023-09-21 10:41:24
合計ジャッジ時間 5,933 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,836 KB
testcase_01 AC 126 ms
55,992 KB
testcase_02 AC 127 ms
54,172 KB
testcase_03 AC 130 ms
55,768 KB
testcase_04 AC 127 ms
55,332 KB
testcase_05 AC 127 ms
55,432 KB
testcase_06 AC 127 ms
55,664 KB
testcase_07 AC 127 ms
55,640 KB
testcase_08 AC 126 ms
55,688 KB
testcase_09 AC 128 ms
56,092 KB
testcase_10 AC 126 ms
56,052 KB
testcase_11 AC 123 ms
55,328 KB
testcase_12 AC 127 ms
56,060 KB
testcase_13 AC 127 ms
55,920 KB
testcase_14 AC 125 ms
55,744 KB
testcase_15 AC 127 ms
56,044 KB
testcase_16 AC 127 ms
55,440 KB
testcase_17 AC 128 ms
55,768 KB
testcase_18 AC 130 ms
55,428 KB
権限があれば一括ダウンロードができます

ソースコード

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