結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,660 KB
testcase_01 AC 129 ms
41,396 KB
testcase_02 AC 114 ms
40,008 KB
testcase_03 AC 116 ms
39,912 KB
testcase_04 AC 129 ms
40,940 KB
testcase_05 AC 127 ms
41,076 KB
testcase_06 WA -
testcase_07 AC 132 ms
41,188 KB
testcase_08 AC 128 ms
40,988 KB
testcase_09 AC 131 ms
41,152 KB
testcase_10 AC 118 ms
40,264 KB
testcase_11 AC 118 ms
40,096 KB
testcase_12 AC 115 ms
40,008 KB
testcase_13 AC 115 ms
40,092 KB
testcase_14 AC 132 ms
41,056 KB
testcase_15 AC 129 ms
41,112 KB
testcase_16 AC 129 ms
41,264 KB
testcase_17 AC 129 ms
41,148 KB
testcase_18 AC 134 ms
41,352 KB
testcase_19 AC 115 ms
40,060 KB
testcase_20 AC 132 ms
41,476 KB
testcase_21 AC 131 ms
41,032 KB
権限があれば一括ダウンロードができます

ソースコード

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.nextLong() * scan.nextLong();
        long N = scan.nextLong();
        long K = scan.nextLong();
        if (HW%N==K || HW==K) ans = "YES";
        System.out.println(ans);
    }
}
0