結果
問題 |
No.1048 Zero (Advanced)
|
ユーザー |
![]() |
提出日時 | 2020-05-10 09:18:11 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 987 bytes |
コンパイル時間 | 2,225 ms |
コンパイル使用メモリ | 74,484 KB |
実行使用メモリ | 54,420 KB |
最終ジャッジ日時 | 2024-07-07 04:40:28 |
合計ジャッジ時間 | 5,274 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 14 WA * 1 |
ソースコード
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" : (k * r) / m > (k * l - 1) / m ? "Yes" : "No"); } } }