結果

問題 No.384 マス埋めゲーム2
ユーザー リチウムリチウム
提出日時 2016-07-01 23:16:44
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 335 bytes
コンパイル時間 3,526 ms
コンパイル使用メモリ 74,352 KB
実行使用メモリ 54,380 KB
最終ジャッジ日時 2024-04-20 06:06:32
合計ジャッジ時間 8,035 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 AC 138 ms
41,192 KB
testcase_03 AC 138 ms
41,204 KB
testcase_04 AC 123 ms
40,048 KB
testcase_05 AC 135 ms
40,936 KB
testcase_06 AC 137 ms
41,364 KB
testcase_07 AC 138 ms
41,444 KB
testcase_08 AC 137 ms
41,340 KB
testcase_09 AC 138 ms
41,432 KB
testcase_10 AC 138 ms
41,212 KB
testcase_11 AC 140 ms
41,316 KB
testcase_12 AC 141 ms
41,232 KB
testcase_13 AC 137 ms
41,084 KB
testcase_14 AC 136 ms
41,640 KB
testcase_15 AC 135 ms
41,444 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 138 ms
41,360 KB
testcase_19 AC 138 ms
41,248 KB
testcase_20 WA -
testcase_21 AC 137 ms
40,916 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

package test;

import java.util.Scanner;


public class atc {

	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		long h=sc.nextInt();
		long w=sc.nextInt();
		long n=sc.nextInt();
		long k=sc.nextInt();
		long ans=(h+w-1)%n;
		if(ans==k)	System.out.println("YES");
		else System.out.println("NO");
	}

}
0