結果

問題 No.166 マス埋めゲーム
ユーザー dazydazy
提出日時 2016-09-23 17:08:08
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 362 bytes
コンパイル時間 3,631 ms
コンパイル使用メモリ 74,108 KB
実行使用メモリ 41,280 KB
最終ジャッジ日時 2024-04-28 22:21:12
合計ジャッジ時間 7,546 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
40,896 KB
testcase_01 AC 131 ms
41,044 KB
testcase_02 AC 137 ms
41,024 KB
testcase_03 AC 119 ms
40,112 KB
testcase_04 AC 135 ms
41,060 KB
testcase_05 AC 138 ms
41,280 KB
testcase_06 WA -
testcase_07 AC 134 ms
40,948 KB
testcase_08 AC 138 ms
40,872 KB
testcase_09 AC 143 ms
41,124 KB
testcase_10 AC 145 ms
41,008 KB
testcase_11 AC 139 ms
41,020 KB
testcase_12 WA -
testcase_13 AC 136 ms
41,008 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 121 ms
39,936 KB
testcase_18 WA -
testcase_19 AC 134 ms
41,188 KB
testcase_20 WA -
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        String ans = "NO";
        long HW = scan.nextInt() * scan.nextInt();
        long N = scan.nextLong();
        long K = scan.nextLong();
        if (HW%N==K || HW==K) ans = "YES";
        System.out.println(ans);
    }
}
0