結果

問題 No.384 マス埋めゲーム2
ユーザー ぴろずぴろず
提出日時 2016-07-01 22:39:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 320 bytes
コンパイル時間 1,995 ms
コンパイル使用メモリ 71,584 KB
実行使用メモリ 56,080 KB
最終ジャッジ日時 2023-08-02 05:48:18
合計ジャッジ時間 6,149 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,696 KB
testcase_01 AC 118 ms
55,460 KB
testcase_02 AC 119 ms
55,684 KB
testcase_03 AC 124 ms
55,640 KB
testcase_04 AC 119 ms
55,396 KB
testcase_05 AC 117 ms
55,464 KB
testcase_06 AC 113 ms
55,688 KB
testcase_07 AC 114 ms
55,392 KB
testcase_08 AC 115 ms
55,524 KB
testcase_09 AC 112 ms
55,564 KB
testcase_10 AC 121 ms
55,512 KB
testcase_11 AC 117 ms
55,496 KB
testcase_12 AC 117 ms
55,504 KB
testcase_13 AC 114 ms
55,728 KB
testcase_14 AC 118 ms
55,908 KB
testcase_15 AC 118 ms
55,908 KB
testcase_16 AC 118 ms
55,388 KB
testcase_17 AC 120 ms
55,548 KB
testcase_18 AC 116 ms
56,080 KB
testcase_19 AC 115 ms
55,484 KB
testcase_20 AC 117 ms
55,544 KB
testcase_21 AC 116 ms
55,380 KB
testcase_22 AC 115 ms
55,348 KB
testcase_23 AC 115 ms
55,548 KB
testcase_24 AC 115 ms
55,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package no384;

import java.util.Scanner;

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