結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
36,592 KB
testcase_01 AC 50 ms
36,924 KB
testcase_02 AC 49 ms
36,564 KB
testcase_03 WA -
testcase_04 AC 50 ms
36,936 KB
testcase_05 WA -
testcase_06 AC 49 ms
36,760 KB
testcase_07 WA -
testcase_08 AC 49 ms
36,848 KB
testcase_09 AC 48 ms
36,692 KB
testcase_10 AC 48 ms
36,556 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 49 ms
36,592 KB
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 49 ms
36,760 KB
testcase_18 WA -
testcase_19 RE -
testcase_20 WA -
testcase_21 RE -
権限があれば一括ダウンロードができます

ソースコード

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(" "); 
		int h = Integer.parseInt(input[0]);
		int w = Integer.parseInt(input[1]);
		long n = Long.parseLong(input[2]);
		int k = Integer.parseInt(input[3]);
		
		long hw = h * w;
		System.out.println((hw % n + n == k) ? "YES" : "NO");
	}
}
0