結果

問題 No.166 マス埋めゲーム
ユーザー YamaKasaYamaKasa
提出日時 2018-05-17 22:28:14
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 435 bytes
コンパイル時間 2,059 ms
コンパイル使用メモリ 71,728 KB
実行使用メモリ 56,092 KB
最終ジャッジ日時 2023-09-10 22:41:43
合計ジャッジ時間 6,384 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,760 KB
testcase_01 AC 118 ms
55,876 KB
testcase_02 AC 118 ms
55,676 KB
testcase_03 WA -
testcase_04 AC 123 ms
55,928 KB
testcase_05 WA -
testcase_06 AC 120 ms
55,884 KB
testcase_07 WA -
testcase_08 AC 120 ms
56,092 KB
testcase_09 AC 122 ms
55,568 KB
testcase_10 AC 119 ms
55,728 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 120 ms
55,460 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 120 ms
55,564 KB
testcase_18 WA -
testcase_19 AC 121 ms
55,544 KB
testcase_20 WA -
testcase_21 AC 121 ms
55,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		long H = scan.nextLong();
		long W = scan.nextLong();
		long N = scan.nextLong();
		long K = scan.nextLong();
		scan.close();
		if(((H % N) * (W % N)) % N == 0) {
			if(K == N) {
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
		}else {
			System.out.println("NO");
		}
	}
}
0