結果

問題 No.384 マス埋めゲーム2
ユーザー TatsuDXTatsuDX
提出日時 2016-10-16 20:45:23
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 301 bytes
コンパイル時間 2,957 ms
コンパイル使用メモリ 74,396 KB
実行使用メモリ 41,520 KB
最終ジャッジ日時 2024-05-02 02:27:10
合計ジャッジ時間 6,750 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 107 ms
41,084 KB
testcase_01 RE -
testcase_02 AC 116 ms
40,984 KB
testcase_03 AC 112 ms
40,984 KB
testcase_04 AC 110 ms
41,204 KB
testcase_05 AC 110 ms
41,060 KB
testcase_06 AC 108 ms
41,164 KB
testcase_07 AC 103 ms
40,320 KB
testcase_08 AC 107 ms
41,088 KB
testcase_09 AC 103 ms
40,560 KB
testcase_10 AC 98 ms
39,748 KB
testcase_11 AC 105 ms
40,164 KB
testcase_12 AC 119 ms
41,504 KB
testcase_13 AC 109 ms
40,936 KB
testcase_14 AC 116 ms
41,188 KB
testcase_15 AC 100 ms
39,736 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 112 ms
41,260 KB
testcase_19 AC 110 ms
41,092 KB
testcase_20 AC 99 ms
40,092 KB
testcase_21 AC 112 ms
40,996 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt()+sc.nextInt()-1, a = sc.nextInt(), b = sc.nextInt();
		if((n-b)%a == 0){
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}
0