結果

問題 No.384 マス埋めゲーム2
ユーザー リチウムリチウム
提出日時 2016-07-01 23:15:26
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 329 bytes
コンパイル時間 2,863 ms
コンパイル使用メモリ 74,680 KB
実行使用メモリ 54,364 KB
最終ジャッジ日時 2024-04-20 06:05:51
合計ジャッジ時間 6,707 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 AC 99 ms
52,828 KB
testcase_03 AC 103 ms
52,976 KB
testcase_04 AC 100 ms
52,952 KB
testcase_05 AC 104 ms
52,884 KB
testcase_06 AC 110 ms
53,512 KB
testcase_07 AC 101 ms
53,068 KB
testcase_08 AC 101 ms
52,948 KB
testcase_09 AC 102 ms
52,764 KB
testcase_10 AC 110 ms
53,904 KB
testcase_11 AC 110 ms
54,080 KB
testcase_12 AC 108 ms
53,984 KB
testcase_13 AC 99 ms
53,072 KB
testcase_14 AC 102 ms
52,872 KB
testcase_15 AC 98 ms
52,808 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 111 ms
53,928 KB
testcase_19 AC 102 ms
53,012 KB
testcase_20 WA -
testcase_21 AC 111 ms
52,988 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);
		int h=sc.nextInt();
		int w=sc.nextInt();
		int n=sc.nextInt();
		int k=sc.nextInt();
		int ans=(h+w-1)%n;
		if(ans==k)	System.out.println("YES");
		else System.out.println("NO");
	}

}
0