結果

問題 No.166 マス埋めゲーム
ユーザー samplelpmassamplelpmas
提出日時 2016-11-12 05:49:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 1,000 ms
コード長 421 bytes
コンパイル時間 2,158 ms
コンパイル使用メモリ 74,852 KB
実行使用メモリ 41,800 KB
最終ジャッジ日時 2024-05-04 09:14:17
合計ジャッジ時間 5,252 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 100 ms
41,676 KB
testcase_01 AC 114 ms
41,148 KB
testcase_02 AC 123 ms
41,712 KB
testcase_03 AC 121 ms
41,148 KB
testcase_04 AC 111 ms
41,244 KB
testcase_05 AC 100 ms
41,652 KB
testcase_06 AC 110 ms
41,448 KB
testcase_07 AC 114 ms
41,232 KB
testcase_08 AC 108 ms
41,408 KB
testcase_09 AC 107 ms
41,352 KB
testcase_10 AC 109 ms
41,420 KB
testcase_11 AC 108 ms
40,224 KB
testcase_12 AC 109 ms
41,228 KB
testcase_13 AC 94 ms
41,708 KB
testcase_14 AC 112 ms
41,172 KB
testcase_15 AC 115 ms
41,800 KB
testcase_16 AC 101 ms
40,284 KB
testcase_17 AC 118 ms
41,700 KB
testcase_18 AC 113 ms
41,128 KB
testcase_19 AC 111 ms
41,156 KB
testcase_20 AC 100 ms
41,024 KB
testcase_21 AC 110 ms
41,232 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