結果

問題 No.166 マス埋めゲーム
ユーザー yagi2
提出日時 2017-04-24 14:15:00
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 480 bytes
コンパイル時間 2,108 ms
コンパイル使用メモリ 74,560 KB
実行使用メモリ 55,940 KB
最終ジャッジ日時 2024-09-13 11:51:21
合計ジャッジ時間 6,008 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.Scanner;

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

        BigInteger H = new BigInteger(sc.next());
        BigInteger W = new BigInteger(sc.next());
        BigInteger N = new BigInteger(sc.next());
        BigInteger K = new BigInteger(sc.next());

        System.out.println((H.multiply(W).mod(N.add(BigInteger.ONE)).compareTo(K) == 0)? "YES" : "NO");
    }
}
0