結果

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

ソースコード

diff #

import java.util.Scanner;

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

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