結果

問題 No.166 マス埋めゲーム
ユーザー dazy
提出日時 2016-09-23 17:14:10
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 364 bytes
コンパイル時間 3,616 ms
コンパイル使用メモリ 74,152 KB
実行使用メモリ 41,352 KB
最終ジャッジ日時 2024-11-17 19:03:36
合計ジャッジ時間 7,776 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 19 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        String ans = "NO";
        long HW = scan.nextLong() * scan.nextLong();
        long N = scan.nextLong();
        long K = scan.nextLong();
        if (HW%N==K || HW==K) ans = "YES";
        System.out.println(ans);
    }
}
0