結果

問題 No.166 マス埋めゲーム
ユーザー matsuyoshi30matsuyoshi30
提出日時 2016-02-10 22:20:48
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 413 bytes
コンパイル時間 1,748 ms
コンパイル使用メモリ 75,244 KB
実行使用メモリ 57,604 KB
最終ジャッジ日時 2023-10-21 22:35:29
合計ジャッジ時間 5,119 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
57,280 KB
testcase_01 AC 103 ms
56,252 KB
testcase_02 AC 110 ms
57,492 KB
testcase_03 AC 106 ms
56,172 KB
testcase_04 AC 98 ms
56,244 KB
testcase_05 AC 108 ms
57,264 KB
testcase_06 AC 109 ms
57,476 KB
testcase_07 AC 114 ms
57,464 KB
testcase_08 AC 112 ms
57,348 KB
testcase_09 AC 115 ms
57,332 KB
testcase_10 AC 111 ms
57,324 KB
testcase_11 AC 103 ms
56,252 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 112 ms
57,396 KB
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 % n) {
            System.out.println("YES");
        } else { 
            System.out.println("NO");
        }
    }
}
0