結果

問題 No.166 マス埋めゲーム
ユーザー yagi2yagi2
提出日時 2017-04-24 14:15:00
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 480 bytes
コンパイル時間 2,153 ms
コンパイル使用メモリ 72,724 KB
実行使用メモリ 58,332 KB
最終ジャッジ日時 2023-10-11 13:05:33
合計ジャッジ時間 6,122 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,688 KB
testcase_01 AC 119 ms
55,708 KB
testcase_02 AC 118 ms
55,740 KB
testcase_03 WA -
testcase_04 AC 117 ms
55,552 KB
testcase_05 WA -
testcase_06 AC 118 ms
55,920 KB
testcase_07 WA -
testcase_08 AC 117 ms
55,816 KB
testcase_09 AC 118 ms
56,400 KB
testcase_10 AC 116 ms
55,900 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 120 ms
55,508 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 117 ms
56,084 KB
testcase_18 WA -
testcase_19 AC 119 ms
56,296 KB
testcase_20 WA -
testcase_21 AC 120 ms
55,980 KB
権限があれば一括ダウンロードができます

ソースコード

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