結果

問題 No.384 マス埋めゲーム2
ユーザー nCk_cvnCk_cv
提出日時 2016-08-28 23:39:56
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 374 bytes
コンパイル時間 2,243 ms
コンパイル使用メモリ 73,908 KB
実行使用メモリ 45,452 KB
最終ジャッジ日時 2024-04-26 17:11:48
合計ジャッジ時間 6,441 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 127 ms
45,292 KB
testcase_02 AC 128 ms
45,276 KB
testcase_03 AC 121 ms
45,112 KB
testcase_04 AC 123 ms
45,132 KB
testcase_05 AC 113 ms
44,088 KB
testcase_06 AC 125 ms
45,212 KB
testcase_07 AC 129 ms
45,132 KB
testcase_08 AC 126 ms
45,052 KB
testcase_09 AC 128 ms
45,276 KB
testcase_10 AC 123 ms
45,024 KB
testcase_11 AC 127 ms
45,156 KB
testcase_12 AC 122 ms
45,016 KB
testcase_13 AC 125 ms
45,452 KB
testcase_14 AC 130 ms
45,144 KB
testcase_15 AC 123 ms
44,944 KB
testcase_16 AC 126 ms
45,204 KB
testcase_17 AC 129 ms
45,008 KB
testcase_18 AC 132 ms
45,016 KB
testcase_19 AC 132 ms
45,252 KB
testcase_20 WA -
testcase_21 AC 132 ms
45,236 KB
testcase_22 AC 136 ms
45,272 KB
testcase_23 AC 128 ms
45,264 KB
testcase_24 AC 127 ms
45,272 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 - 1) % N == K) System.out.println("YES");
			else System.out.println("NO");
		}

		

}
0