結果

問題 No.384 マス埋めゲーム2
ユーザー nCk_cvnCk_cv
提出日時 2016-08-28 23:41:07
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 1,000 ms
コード長 378 bytes
コンパイル時間 2,150 ms
コンパイル使用メモリ 74,016 KB
実行使用メモリ 45,768 KB
最終ジャッジ日時 2024-04-26 17:11:55
合計ジャッジ時間 6,470 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
45,228 KB
testcase_01 AC 134 ms
44,920 KB
testcase_02 AC 131 ms
45,260 KB
testcase_03 AC 137 ms
45,372 KB
testcase_04 AC 135 ms
45,008 KB
testcase_05 AC 133 ms
44,920 KB
testcase_06 AC 131 ms
44,944 KB
testcase_07 AC 134 ms
45,096 KB
testcase_08 AC 135 ms
45,496 KB
testcase_09 AC 135 ms
45,168 KB
testcase_10 AC 134 ms
45,348 KB
testcase_11 AC 133 ms
45,768 KB
testcase_12 AC 135 ms
45,296 KB
testcase_13 AC 138 ms
45,412 KB
testcase_14 AC 136 ms
45,628 KB
testcase_15 AC 134 ms
45,204 KB
testcase_16 AC 133 ms
45,156 KB
testcase_17 AC 136 ms
45,200 KB
testcase_18 AC 133 ms
45,432 KB
testcase_19 AC 134 ms
45,304 KB
testcase_20 AC 135 ms
45,244 KB
testcase_21 AC 136 ms
45,512 KB
testcase_22 AC 137 ms
44,968 KB
testcase_23 AC 130 ms
45,316 KB
testcase_24 AC 131 ms
44,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	static int[] an = new int[1000000];
		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();
			if((H + W - 2) % N + 1 == K) System.out.println("YES");
			else System.out.println("NO");
		}

		

}
0