結果

問題 No.166 マス埋めゲーム
ユーザー matsuyoshi30
提出日時 2016-02-10 22:16:18
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 408 bytes
コンパイル時間 2,093 ms
コンパイル使用メモリ 74,144 KB
実行使用メモリ 41,632 KB
最終ジャッジ日時 2024-09-22 00:02:08
合計ジャッジ時間 6,238 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 6 WA * 9 RE * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
    public static void main(String[] args) throws Exception {
        Scanner in = new Scanner(System.in);
        int h = in.nextInt();
        int w = in.nextInt();
        int n = in.nextInt();
        int k = in.nextInt();

        if((h*w) % k == 0) {
            System.out.println("NO");
        } else {
            System.out.println("YES");
        }
    }
}
0