結果

問題 No.166 マス埋めゲーム
ユーザー dazydazy
提出日時 2016-09-23 17:19:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 1,000 ms
コード長 357 bytes
コンパイル時間 3,495 ms
コンパイル使用メモリ 74,052 KB
実行使用メモリ 41,364 KB
最終ジャッジ日時 2024-04-28 22:21:56
合計ジャッジ時間 7,186 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
41,056 KB
testcase_01 AC 131 ms
41,172 KB
testcase_02 AC 132 ms
41,068 KB
testcase_03 AC 132 ms
41,116 KB
testcase_04 AC 132 ms
40,948 KB
testcase_05 AC 130 ms
41,268 KB
testcase_06 AC 131 ms
41,056 KB
testcase_07 AC 134 ms
40,952 KB
testcase_08 AC 136 ms
41,256 KB
testcase_09 AC 136 ms
41,116 KB
testcase_10 AC 137 ms
40,944 KB
testcase_11 AC 119 ms
40,048 KB
testcase_12 AC 137 ms
41,048 KB
testcase_13 AC 130 ms
41,128 KB
testcase_14 AC 118 ms
40,152 KB
testcase_15 AC 133 ms
41,364 KB
testcase_16 AC 134 ms
41,124 KB
testcase_17 AC 135 ms
41,268 KB
testcase_18 AC 135 ms
41,072 KB
testcase_19 AC 133 ms
41,192 KB
testcase_20 AC 131 ms
41,088 KB
testcase_21 AC 119 ms
40,188 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%N) ans = "YES";
        System.out.println(ans);
    }
}
0