結果

問題 No.166 マス埋めゲーム
ユーザー matsuyoshi30
提出日時 2016-02-10 22:19:25
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 2,489 ms
コンパイル使用メモリ 74,772 KB
実行使用メモリ 41,380 KB
最終ジャッジ日時 2024-09-22 00:03:21
合計ジャッジ時間 6,097 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 9 WA * 6 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) % n == k) {
            System.out.println("YES");
        } else { 
            System.out.println("NO");
        }
    }
}
0