結果

問題 No.166 マス埋めゲーム
ユーザー jimanojimano
提出日時 2018-02-10 16:07:17
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 553 bytes
コンパイル時間 3,747 ms
コンパイル使用メモリ 73,184 KB
実行使用メモリ 37,024 KB
最終ジャッジ日時 2024-04-22 15:23:01
合計ジャッジ時間 4,948 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
36,888 KB
testcase_01 AC 51 ms
36,964 KB
testcase_02 AC 51 ms
36,908 KB
testcase_03 WA -
testcase_04 AC 51 ms
36,628 KB
testcase_05 WA -
testcase_06 AC 50 ms
36,800 KB
testcase_07 WA -
testcase_08 AC 51 ms
36,852 KB
testcase_09 AC 51 ms
37,004 KB
testcase_10 AC 51 ms
36,760 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 50 ms
37,000 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 51 ms
37,024 KB
testcase_18 WA -
testcase_19 AC 50 ms
36,824 KB
testcase_20 WA -
testcase_21 AC 50 ms
36,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package me.yukicoder;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No0166 {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] input = br.readLine().split(" "); 
		long h = Long.parseLong(input[0]);
		long w = Long.parseLong(input[1]);
		long n = Long.parseLong(input[2]);
		long k = Long.parseLong(input[3]);
		
		long hw = h * w;
		System.out.println((hw % n + n == k) ? "YES" : "NO");
	}
}
0