結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 51 ms
36,744 KB
testcase_01 AC 51 ms
36,836 KB
testcase_02 AC 51 ms
36,624 KB
testcase_03 WA -
testcase_04 AC 52 ms
36,816 KB
testcase_05 WA -
testcase_06 AC 50 ms
36,852 KB
testcase_07 WA -
testcase_08 AC 51 ms
36,624 KB
testcase_09 AC 51 ms
36,492 KB
testcase_10 AC 50 ms
36,924 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 52 ms
36,592 KB
testcase_18 WA -
testcase_19 RE -
testcase_20 RE -
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]);
		int n = Integer.parseInt(input[2]);
		int k = Integer.parseInt(input[3]);
		
		long hw = h * w;
		System.out.println((hw % n + n == k) ? "YES" : "NO");
	}
}
0