結果

問題 No.384 マス埋めゲーム2
ユーザー ぴろずぴろず
提出日時 2016-07-01 22:38:27
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 312 bytes
コンパイル時間 2,122 ms
コンパイル使用メモリ 74,648 KB
実行使用メモリ 54,408 KB
最終ジャッジ日時 2024-04-20 05:43:25
合計ジャッジ時間 6,573 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
53,848 KB
testcase_01 RE -
testcase_02 AC 134 ms
54,312 KB
testcase_03 AC 139 ms
54,180 KB
testcase_04 AC 137 ms
53,816 KB
testcase_05 AC 138 ms
54,108 KB
testcase_06 AC 120 ms
52,784 KB
testcase_07 AC 129 ms
54,084 KB
testcase_08 AC 132 ms
54,072 KB
testcase_09 AC 122 ms
52,856 KB
testcase_10 AC 139 ms
54,040 KB
testcase_11 AC 138 ms
54,100 KB
testcase_12 AC 128 ms
53,824 KB
testcase_13 AC 128 ms
54,236 KB
testcase_14 AC 124 ms
54,204 KB
testcase_15 AC 139 ms
54,196 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 135 ms
54,120 KB
testcase_19 AC 135 ms
53,948 KB
testcase_20 AC 112 ms
53,004 KB
testcase_21 AC 135 ms
53,956 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

package no384;

import java.util.Scanner;

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