結果

問題 No.384 マス埋めゲーム2
ユーザー nCk_cv
提出日時 2016-08-28 23:39:56
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 374 bytes
コンパイル時間 2,196 ms
コンパイル使用メモリ 75,036 KB
実行使用メモリ 58,412 KB
最終ジャッジ日時 2024-11-14 06:40:52
合計ジャッジ時間 6,331 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 20 WA * 2
権限があれば一括ダウンロードができます

ソースコード

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