結果
問題 |
No.1048 Zero (Advanced)
|
ユーザー |
![]() |
提出日時 | 2020-05-11 08:34:33 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 419 bytes |
コンパイル時間 | 1,750 ms |
コンパイル使用メモリ | 74,512 KB |
実行使用メモリ | 54,332 KB |
最終ジャッジ日時 | 2024-07-18 01:48:58 |
合計ジャッジ時間 | 4,784 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 14 WA * 1 |
ソースコード
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 m = sc.nextInt(); long k = sc.nextInt(); long leftCount = (left * k - 1) / m; long rightCount = right * k / m; if (leftCount == rightCount) { System.out.println("No"); } else { System.out.println("Yes"); } } }