結果

問題 No.384 マス埋めゲーム2
ユーザー ぴろずぴろず
提出日時 2016-07-01 22:39:10
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 1,000 ms
コード長 320 bytes
コンパイル時間 2,055 ms
コンパイル使用メモリ 74,284 KB
実行使用メモリ 54,648 KB
最終ジャッジ日時 2024-04-20 05:44:24
合計ジャッジ時間 6,132 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
54,088 KB
testcase_01 AC 116 ms
54,244 KB
testcase_02 AC 117 ms
52,808 KB
testcase_03 AC 127 ms
54,112 KB
testcase_04 AC 128 ms
54,648 KB
testcase_05 AC 125 ms
54,160 KB
testcase_06 AC 130 ms
54,176 KB
testcase_07 AC 126 ms
54,228 KB
testcase_08 AC 129 ms
54,308 KB
testcase_09 AC 115 ms
52,988 KB
testcase_10 AC 127 ms
53,880 KB
testcase_11 AC 126 ms
54,232 KB
testcase_12 AC 128 ms
54,092 KB
testcase_13 AC 131 ms
54,324 KB
testcase_14 AC 128 ms
54,252 KB
testcase_15 AC 129 ms
54,148 KB
testcase_16 AC 130 ms
54,244 KB
testcase_17 AC 129 ms
54,364 KB
testcase_18 AC 129 ms
54,252 KB
testcase_19 AC 130 ms
54,252 KB
testcase_20 AC 129 ms
54,056 KB
testcase_21 AC 129 ms
54,060 KB
testcase_22 AC 130 ms
53,976 KB
testcase_23 AC 133 ms
54,144 KB
testcase_24 AC 126 ms
54,072 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