結果

問題 No.166 マス埋めゲーム
ユーザー tenten
提出日時 2020-12-07 12:27:32
言語 Java
(openjdk 23)
結果
AC  
実行時間 134 ms / 1,000 ms
コード長 402 bytes
コンパイル時間 2,113 ms
コンパイル使用メモリ 74,156 KB
実行使用メモリ 41,484 KB
最終ジャッジ日時 2024-09-17 13:52:09
合計ジャッジ時間 6,117 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long h = sc.nextInt();
        long w = sc.nextInt();
        long n = sc.nextLong();
        long k = sc.nextLong();
        if (h * w % n == k % n) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
0