結果

問題 No.384 マス埋めゲーム2
ユーザー Mcpu3Mcpu3
提出日時 2018-10-08 20:33:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 364 bytes
コンパイル時間 1,741 ms
コンパイル使用メモリ 74,604 KB
実行使用メモリ 41,548 KB
最終ジャッジ日時 2024-04-20 18:49:40
合計ジャッジ時間 5,334 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 114 ms
41,132 KB
testcase_01 AC 120 ms
41,132 KB
testcase_02 AC 101 ms
40,844 KB
testcase_03 AC 111 ms
40,968 KB
testcase_04 AC 112 ms
41,308 KB
testcase_05 AC 117 ms
41,548 KB
testcase_06 AC 114 ms
39,920 KB
testcase_07 AC 114 ms
41,196 KB
testcase_08 AC 124 ms
41,116 KB
testcase_09 AC 106 ms
41,388 KB
testcase_10 AC 105 ms
40,828 KB
testcase_11 AC 113 ms
41,436 KB
testcase_12 AC 104 ms
41,472 KB
testcase_13 AC 119 ms
41,260 KB
testcase_14 AC 97 ms
41,180 KB
testcase_15 AC 111 ms
40,968 KB
testcase_16 AC 109 ms
41,292 KB
testcase_17 AC 113 ms
39,980 KB
testcase_18 AC 104 ms
41,288 KB
testcase_19 AC 105 ms
40,932 KB
testcase_20 AC 114 ms
41,260 KB
testcase_21 AC 121 ms
40,968 KB
testcase_22 AC 120 ms
40,916 KB
testcase_23 AC 113 ms
41,168 KB
testcase_24 AC 108 ms
41,064 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        long H = sc.nextLong(), W = sc.nextLong(), N = sc.nextLong(), K = sc.nextLong();
        sc.close();
        if (((H - 1) + (W - 1)) % N + 1 == K) System.out.print("YES");
        else System.out.print("NO");
    }
}
0