結果

問題 No.384 マス埋めゲーム2
ユーザー 37zigen
提出日時 2016-07-01 22:55:48
言語 Java
(openjdk 23)
結果
AC  
実行時間 138 ms / 1,000 ms
コード長 365 bytes
コンパイル時間 2,238 ms
コンパイル使用メモリ 73,964 KB
実行使用メモリ 41,488 KB
最終ジャッジ日時 2024-10-12 00:56:17
合計ジャッジ時間 6,282 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class Main {
	public static void main(String[] args){
		new Main().solver();
	}
	void solver(){
		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%N){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}
}
0