結果

問題 No.166 マス埋めゲーム
ユーザー matsuyoshi30matsuyoshi30
提出日時 2016-02-10 22:22:21
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 417 bytes
コンパイル時間 2,145 ms
コンパイル使用メモリ 74,588 KB
実行使用メモリ 57,612 KB
最終ジャッジ日時 2023-10-21 22:35:57
合計ジャッジ時間 6,089 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
57,396 KB
testcase_01 AC 129 ms
57,344 KB
testcase_02 AC 129 ms
57,232 KB
testcase_03 AC 129 ms
57,252 KB
testcase_04 AC 129 ms
57,376 KB
testcase_05 AC 129 ms
57,312 KB
testcase_06 AC 130 ms
57,324 KB
testcase_07 AC 121 ms
56,084 KB
testcase_08 AC 131 ms
57,404 KB
testcase_09 AC 132 ms
57,520 KB
testcase_10 AC 132 ms
57,500 KB
testcase_11 AC 136 ms
54,964 KB
testcase_12 AC 131 ms
57,316 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 120 ms
56,096 KB
testcase_16 AC 130 ms
57,156 KB
testcase_17 AC 129 ms
57,108 KB
testcase_18 AC 128 ms
57,180 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
    public static void main(String[] args) throws Exception {
        Scanner in = new Scanner(System.in);
        long h = in.nextInt();
        long w = in.nextInt();
        long n = in.nextInt();
        long k = in.nextInt();

        if((h*w) % n == k % n) {
            System.out.println("YES");
        } else { 
            System.out.println("NO");
        }
    }
}
0