結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 119 ms
57,564 KB
testcase_02 AC 105 ms
56,216 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 101 ms
56,136 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 116 ms
57,028 KB
testcase_12 AC 105 ms
56,224 KB
testcase_13 RE -
testcase_14 RE -
testcase_15 AC 111 ms
57,068 KB
testcase_16 AC 113 ms
57,572 KB
testcase_17 WA -
testcase_18 WA -
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);
        int h = in.nextInt();
        int w = in.nextInt();
        int n = in.nextInt();
        int k = in.nextInt();

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