結果

問題 No.166 マス埋めゲーム
ユーザー matsuyoshi30matsuyoshi30
提出日時 2016-02-10 22:17:47
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 410 bytes
コンパイル時間 2,400 ms
コンパイル使用メモリ 73,964 KB
実行使用メモリ 57,604 KB
最終ジャッジ日時 2023-10-21 22:33:40
合計ジャッジ時間 5,982 ms
ジャッジサーバーID
(参考情報)
judge12 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 98 ms
55,660 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 109 ms
57,048 KB
testcase_04 AC 113 ms
57,004 KB
testcase_05 AC 122 ms
57,028 KB
testcase_06 AC 116 ms
57,008 KB
testcase_07 WA -
testcase_08 AC 109 ms
57,272 KB
testcase_09 AC 118 ms
57,208 KB
testcase_10 AC 123 ms
57,452 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 110 ms
57,372 KB
testcase_18 AC 101 ms
56,028 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);
        int h = in.nextInt();
        int w = in.nextInt();
        int n = in.nextInt();
        int k = in.nextInt();

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