結果

問題 No.384 マス埋めゲーム2
ユーザー 37zigen37zigen
提出日時 2016-07-01 22:55:48
言語 Java19
(openjdk 21)
結果
AC  
実行時間 120 ms / 1,000 ms
コード長 365 bytes
コンパイル時間 2,009 ms
コンパイル使用メモリ 71,532 KB
実行使用メモリ 56,376 KB
最終ジャッジ日時 2023-08-02 05:58:10
合計ジャッジ時間 6,158 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,656 KB
testcase_01 AC 120 ms
56,168 KB
testcase_02 AC 117 ms
55,988 KB
testcase_03 AC 117 ms
55,612 KB
testcase_04 AC 117 ms
55,752 KB
testcase_05 AC 117 ms
55,352 KB
testcase_06 AC 117 ms
55,600 KB
testcase_07 AC 114 ms
55,584 KB
testcase_08 AC 111 ms
55,448 KB
testcase_09 AC 116 ms
55,424 KB
testcase_10 AC 118 ms
55,672 KB
testcase_11 AC 114 ms
56,188 KB
testcase_12 AC 117 ms
55,728 KB
testcase_13 AC 113 ms
55,676 KB
testcase_14 AC 115 ms
55,612 KB
testcase_15 AC 119 ms
56,040 KB
testcase_16 AC 116 ms
56,376 KB
testcase_17 AC 116 ms
55,932 KB
testcase_18 AC 118 ms
55,692 KB
testcase_19 AC 119 ms
55,684 KB
testcase_20 AC 117 ms
55,608 KB
testcase_21 AC 117 ms
55,664 KB
testcase_22 AC 115 ms
55,564 KB
testcase_23 AC 120 ms
55,656 KB
testcase_24 AC 116 ms
55,564 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