結果

問題 No.166 マス埋めゲーム
ユーザー samplelpmassamplelpmas
提出日時 2016-11-12 05:49:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 1,000 ms
コード長 421 bytes
コンパイル時間 2,233 ms
コンパイル使用メモリ 71,692 KB
実行使用メモリ 58,012 KB
最終ジャッジ日時 2023-08-17 01:59:42
合計ジャッジ時間 7,024 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
58,012 KB
testcase_01 AC 126 ms
55,660 KB
testcase_02 AC 133 ms
55,688 KB
testcase_03 AC 124 ms
56,160 KB
testcase_04 AC 125 ms
55,692 KB
testcase_05 AC 124 ms
56,400 KB
testcase_06 AC 126 ms
55,684 KB
testcase_07 AC 126 ms
55,636 KB
testcase_08 AC 124 ms
55,952 KB
testcase_09 AC 125 ms
55,796 KB
testcase_10 AC 123 ms
55,752 KB
testcase_11 AC 125 ms
55,724 KB
testcase_12 AC 122 ms
55,532 KB
testcase_13 AC 124 ms
55,956 KB
testcase_14 AC 125 ms
56,136 KB
testcase_15 AC 125 ms
56,032 KB
testcase_16 AC 124 ms
55,972 KB
testcase_17 AC 123 ms
55,768 KB
testcase_18 AC 124 ms
55,724 KB
testcase_19 AC 123 ms
55,464 KB
testcase_20 AC 127 ms
55,424 KB
testcase_21 AC 126 ms
55,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

    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");
        }

    }

}
0