結果

問題 No.166 マス埋めゲーム
ユーザー tsunabittsunabit
提出日時 2019-05-12 23:22:08
言語 Java19
(openjdk 21)
結果
AC  
実行時間 130 ms / 1,000 ms
コード長 447 bytes
コンパイル時間 4,074 ms
コンパイル使用メモリ 72,348 KB
実行使用メモリ 39,928 KB
最終ジャッジ日時 2023-09-19 07:00:17
合計ジャッジ時間 8,186 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
39,096 KB
testcase_01 AC 125 ms
39,316 KB
testcase_02 AC 126 ms
39,164 KB
testcase_03 AC 126 ms
39,372 KB
testcase_04 AC 126 ms
39,464 KB
testcase_05 AC 126 ms
39,328 KB
testcase_06 AC 130 ms
39,476 KB
testcase_07 AC 125 ms
39,480 KB
testcase_08 AC 126 ms
39,232 KB
testcase_09 AC 126 ms
39,316 KB
testcase_10 AC 127 ms
39,296 KB
testcase_11 AC 129 ms
39,132 KB
testcase_12 AC 127 ms
39,500 KB
testcase_13 AC 126 ms
39,928 KB
testcase_14 AC 127 ms
39,744 KB
testcase_15 AC 129 ms
39,000 KB
testcase_16 AC 126 ms
39,632 KB
testcase_17 AC 125 ms
39,800 KB
testcase_18 AC 125 ms
39,080 KB
testcase_19 AC 123 ms
39,684 KB
testcase_20 AC 123 ms
39,084 KB
testcase_21 AC 128 ms
39,540 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.ArrayList;
import java.util.Scanner;

public class No166 {
    public static void main(String[] args) {
        // 標準入力から読み込む際に、Scannerオブジェクトを使う。
        Scanner s = new Scanner(System.in);
        long h = s.nextLong() , w = s.nextLong() , n = s.nextLong() , k = s.nextLong();
		if(h * w % n == k % n){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
    }
}
0