結果

問題 No.384 マス埋めゲーム2
ユーザー TatsuDXTatsuDX
提出日時 2016-10-16 20:46:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 138 ms / 1,000 ms
コード長 306 bytes
コンパイル時間 3,648 ms
コンパイル使用メモリ 74,260 KB
実行使用メモリ 41,668 KB
最終ジャッジ日時 2024-05-02 02:27:27
合計ジャッジ時間 7,740 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
41,172 KB
testcase_01 AC 135 ms
41,196 KB
testcase_02 AC 133 ms
41,280 KB
testcase_03 AC 135 ms
41,428 KB
testcase_04 AC 132 ms
41,256 KB
testcase_05 AC 132 ms
41,384 KB
testcase_06 AC 115 ms
39,972 KB
testcase_07 AC 129 ms
40,956 KB
testcase_08 AC 135 ms
41,456 KB
testcase_09 AC 138 ms
41,244 KB
testcase_10 AC 134 ms
41,208 KB
testcase_11 AC 137 ms
41,128 KB
testcase_12 AC 135 ms
41,668 KB
testcase_13 AC 135 ms
41,116 KB
testcase_14 AC 134 ms
41,264 KB
testcase_15 AC 133 ms
41,204 KB
testcase_16 AC 131 ms
41,588 KB
testcase_17 AC 137 ms
41,384 KB
testcase_18 AC 134 ms
41,364 KB
testcase_19 AC 133 ms
41,636 KB
testcase_20 AC 137 ms
41,108 KB
testcase_21 AC 135 ms
41,260 KB
testcase_22 AC 131 ms
41,248 KB
testcase_23 AC 136 ms
41,352 KB
testcase_24 AC 138 ms
41,192 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

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