結果

問題 No.384 マス埋めゲーム2
ユーザー htensaihtensai
提出日時 2020-02-03 17:29:20
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 401 bytes
コンパイル時間 3,612 ms
コンパイル使用メモリ 73,784 KB
実行使用メモリ 57,632 KB
最終ジャッジ日時 2023-10-19 06:14:23
合計ジャッジ時間 7,920 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 AC 130 ms
57,268 KB
testcase_03 AC 131 ms
57,332 KB
testcase_04 AC 133 ms
57,412 KB
testcase_05 AC 132 ms
57,588 KB
testcase_06 AC 129 ms
57,376 KB
testcase_07 AC 129 ms
57,384 KB
testcase_08 AC 133 ms
57,612 KB
testcase_09 AC 131 ms
57,572 KB
testcase_10 AC 132 ms
57,396 KB
testcase_11 AC 133 ms
57,408 KB
testcase_12 AC 133 ms
57,436 KB
testcase_13 AC 132 ms
57,020 KB
testcase_14 AC 137 ms
57,372 KB
testcase_15 AC 132 ms
57,408 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 133 ms
57,432 KB
testcase_19 AC 131 ms
57,396 KB
testcase_20 WA -
testcase_21 AC 131 ms
57,592 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[]  args) {
        Scanner sc = new Scanner(System.in);
        long h = sc.nextInt();
        long w = sc.nextInt();
        int n = sc.nextInt();
        int k = sc.nextInt();
        if ((h + w - 1) % n == k) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}
0