結果

問題 No.384 マス埋めゲーム2
ユーザー 37zigen37zigen
提出日時 2016-07-01 22:55:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 365 bytes
コンパイル時間 2,117 ms
コンパイル使用メモリ 74,844 KB
実行使用メモリ 54,372 KB
最終ジャッジ日時 2024-04-20 05:53:05
合計ジャッジ時間 5,230 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
52,816 KB
testcase_01 AC 117 ms
54,140 KB
testcase_02 AC 113 ms
54,108 KB
testcase_03 AC 113 ms
53,976 KB
testcase_04 AC 115 ms
54,092 KB
testcase_05 AC 120 ms
54,224 KB
testcase_06 AC 119 ms
54,096 KB
testcase_07 AC 111 ms
54,152 KB
testcase_08 AC 114 ms
54,092 KB
testcase_09 AC 116 ms
54,368 KB
testcase_10 AC 115 ms
53,964 KB
testcase_11 AC 116 ms
54,160 KB
testcase_12 AC 102 ms
53,104 KB
testcase_13 AC 102 ms
53,044 KB
testcase_14 AC 114 ms
54,024 KB
testcase_15 AC 115 ms
54,172 KB
testcase_16 AC 97 ms
52,720 KB
testcase_17 AC 111 ms
54,052 KB
testcase_18 AC 113 ms
54,372 KB
testcase_19 AC 108 ms
52,968 KB
testcase_20 AC 102 ms
52,980 KB
testcase_21 AC 103 ms
53,512 KB
testcase_22 AC 111 ms
52,664 KB
testcase_23 AC 110 ms
54,020 KB
testcase_24 AC 99 ms
52,748 KB
権限があれば一括ダウンロードができます

ソースコード

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