結果

問題 No.384 マス埋めゲーム2
ユーザー YamaKasa
提出日時 2018-09-19 03:45:20
言語 Java
(openjdk 23)
結果
AC  
実行時間 124 ms / 1,000 ms
コード長 368 bytes
コンパイル時間 2,314 ms
コンパイル使用メモリ 80,304 KB
実行使用メモリ 54,432 KB
最終ジャッジ日時 2025-01-01 17:36:59
合計ジャッジ時間 6,605 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long H = scan.nextLong();
		long W = scan.nextLong();
		long N = scan.nextLong();
		long K = scan.nextLong();
		scan.close();
		if((H + W - 2) % N + 1 == K) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
	}
}
0