結果

問題 No.166 マス埋めゲーム
ユーザー tentententen
提出日時 2020-12-07 12:27:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 1,000 ms
コード長 402 bytes
コンパイル時間 2,943 ms
コンパイル使用メモリ 74,236 KB
実行使用メモリ 57,604 KB
最終ジャッジ日時 2023-10-17 16:27:56
合計ジャッジ時間 6,183 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
57,524 KB
testcase_01 AC 134 ms
57,448 KB
testcase_02 AC 131 ms
57,456 KB
testcase_03 AC 130 ms
57,576 KB
testcase_04 AC 130 ms
57,448 KB
testcase_05 AC 137 ms
57,604 KB
testcase_06 AC 136 ms
57,404 KB
testcase_07 AC 134 ms
57,444 KB
testcase_08 AC 135 ms
57,416 KB
testcase_09 AC 133 ms
57,416 KB
testcase_10 AC 132 ms
56,192 KB
testcase_11 AC 134 ms
57,348 KB
testcase_12 AC 131 ms
57,400 KB
testcase_13 AC 133 ms
57,396 KB
testcase_14 AC 132 ms
57,412 KB
testcase_15 AC 135 ms
57,464 KB
testcase_16 AC 130 ms
57,416 KB
testcase_17 AC 129 ms
57,544 KB
testcase_18 AC 129 ms
57,552 KB
testcase_19 AC 128 ms
57,256 KB
testcase_20 AC 130 ms
57,420 KB
testcase_21 AC 134 ms
57,548 KB
権限があれば一括ダウンロードができます

ソースコード

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