結果

問題 No.384 マス埋めゲーム2
ユーザー ぴろず
提出日時 2016-07-01 22:38:27
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 312 bytes
コンパイル時間 3,748 ms
コンパイル使用メモリ 74,320 KB
実行使用メモリ 41,452 KB
最終ジャッジ日時 2024-10-12 00:45:45
合計ジャッジ時間 6,984 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 RE * 6
権限があれば一括ダウンロードができます

ソースコード

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