結果

問題 No.166 マス埋めゲーム
ユーザー r.suzukir.suzuki
提出日時 2015-12-28 23:50:04
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 3,828 ms
コンパイル使用メモリ 75,064 KB
実行使用メモリ 57,752 KB
最終ジャッジ日時 2023-10-19 12:09:58
合計ジャッジ時間 7,482 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 127 ms
57,208 KB
testcase_01 AC 123 ms
57,208 KB
testcase_02 AC 124 ms
57,212 KB
testcase_03 AC 122 ms
57,200 KB
testcase_04 AC 121 ms
57,216 KB
testcase_05 AC 124 ms
57,448 KB
testcase_06 WA -
testcase_07 AC 135 ms
56,248 KB
testcase_08 AC 125 ms
57,732 KB
testcase_09 AC 124 ms
57,228 KB
testcase_10 AC 125 ms
57,164 KB
testcase_11 AC 125 ms
57,172 KB
testcase_12 AC 126 ms
57,188 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 121 ms
57,184 KB
testcase_16 AC 124 ms
57,172 KB
testcase_17 AC 125 ms
57,196 KB
testcase_18 AC 124 ms
57,424 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

public class No_166 {

	public static void main(String[] args) {
		java.util.Scanner sc = new java.util.Scanner(System.in);
		long l = sc.nextLong() * sc.nextLong();
		int n = sc.nextInt();
		int k = sc.nextInt();
		String ans = "";

		if (k == l % n || l == k) {
			ans = "YES";
		} else {
			ans = "NO";
		}

		System.out.println(ans);
		sc.close();

	}

}
0