結果

問題 No.166 マス埋めゲーム
ユーザー matsuyoshi30matsuyoshi30
提出日時 2016-02-10 22:19:25
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 409 bytes
コンパイル時間 1,910 ms
コンパイル使用メモリ 73,992 KB
実行使用メモリ 57,772 KB
最終ジャッジ日時 2023-10-21 22:34:43
合計ジャッジ時間 5,682 ms
ジャッジサーバーID
(参考情報)
judge15 / judge9
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 131 ms
57,448 KB
testcase_02 AC 128 ms
57,436 KB
testcase_03 AC 125 ms
57,376 KB
testcase_04 AC 125 ms
57,420 KB
testcase_05 AC 126 ms
55,560 KB
testcase_06 WA -
testcase_07 AC 106 ms
56,164 KB
testcase_08 AC 123 ms
57,500 KB
testcase_09 AC 121 ms
57,492 KB
testcase_10 AC 124 ms
57,464 KB
testcase_11 AC 127 ms
57,400 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
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) % n == k) {
            System.out.println("YES");
        } else { 
            System.out.println("NO");
        }
    }
}
0