結果

問題 No.1048 Zero (Advanced)
ユーザー htensaihtensai
提出日時 2020-05-11 08:34:33
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 419 bytes
コンパイル時間 1,973 ms
コンパイル使用メモリ 71,004 KB
実行使用メモリ 56,516 KB
最終ジャッジ日時 2023-09-25 01:44:37
合計ジャッジ時間 5,960 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,572 KB
testcase_01 AC 121 ms
55,724 KB
testcase_02 WA -
testcase_03 AC 122 ms
55,948 KB
testcase_04 AC 122 ms
53,812 KB
testcase_05 AC 121 ms
56,516 KB
testcase_06 AC 126 ms
55,500 KB
testcase_07 AC 119 ms
55,904 KB
testcase_08 AC 125 ms
55,792 KB
testcase_09 AC 120 ms
55,728 KB
testcase_10 AC 120 ms
55,860 KB
testcase_11 AC 119 ms
56,104 KB
testcase_12 AC 125 ms
56,000 KB
testcase_13 AC 120 ms
56,088 KB
testcase_14 AC 120 ms
55,988 KB
testcase_15 AC 120 ms
55,572 KB
testcase_16 WA -
testcase_17 AC 120 ms
55,972 KB
testcase_18 AC 122 ms
55,984 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) {
		    System.out.println("No");
		} else {
		    System.out.println("Yes");
		}
	}
}
0