結果

問題 No.166 マス埋めゲーム
ユーザー Grenache
提出日時 2015-11-01 23:38:41
言語 Java
(openjdk 23)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 451 bytes
コンパイル時間 3,356 ms
コンパイル使用メモリ 75,028 KB
実行使用メモリ 54,240 KB
最終ジャッジ日時 2024-09-13 06:55:19
合計ジャッジ時間 7,149 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;


public class Main_yukicoder166 {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        long h = sc.nextLong();
        long w = sc.nextLong();
        long n = sc.nextLong();
        long k = sc.nextLong();

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