結果

問題 No.1048 Zero (Advanced)
ユーザー htensaihtensai
提出日時 2020-05-11 08:36:15
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 429 bytes
コンパイル時間 2,192 ms
コンパイル使用メモリ 70,880 KB
実行使用メモリ 55,496 KB
最終ジャッジ日時 2023-09-25 01:48:48
合計ジャッジ時間 6,330 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
39,272 KB
testcase_01 AC 117 ms
39,464 KB
testcase_02 AC 115 ms
39,336 KB
testcase_03 AC 119 ms
39,760 KB
testcase_04 AC 117 ms
39,492 KB
testcase_05 AC 117 ms
39,756 KB
testcase_06 AC 116 ms
39,624 KB
testcase_07 AC 129 ms
39,912 KB
testcase_08 AC 117 ms
39,628 KB
testcase_09 AC 117 ms
39,516 KB
testcase_10 AC 121 ms
40,236 KB
testcase_11 AC 119 ms
39,648 KB
testcase_12 AC 120 ms
39,280 KB
testcase_13 AC 119 ms
39,652 KB
testcase_14 AC 121 ms
39,720 KB
testcase_15 AC 119 ms
39,236 KB
testcase_16 WA -
testcase_17 AC 117 ms
39,624 KB
testcase_18 AC 118 ms
39,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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 && k != 0) {
		    System.out.println("No");
		} else {
		    System.out.println("Yes");
		}
	}
}
0