結果

問題 No.166 マス埋めゲーム
ユーザー r.suzuki
提出日時 2016-01-02 20:48:45
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 374 bytes
コンパイル時間 3,031 ms
コンパイル使用メモリ 74,316 KB
実行使用メモリ 54,284 KB
最終ジャッジ日時 2024-09-19 10:37:03
合計ジャッジ時間 6,379 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 15 RE * 5
権限があれば一括ダウンロードができます

ソースコード

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 || (n == k && l % k == 0)) {
			ans = "YES";
		} else {
			ans = "NO";
		}

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

	}

}
0