結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 45 ms
36,864 KB
testcase_01 AC 48 ms
36,920 KB
testcase_02 AC 47 ms
36,864 KB
testcase_03 WA -
testcase_04 AC 47 ms
36,880 KB
testcase_05 WA -
testcase_06 AC 46 ms
36,788 KB
testcase_07 WA -
testcase_08 AC 48 ms
36,836 KB
testcase_09 AC 47 ms
36,880 KB
testcase_10 AC 46 ms
36,984 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 47 ms
36,592 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 47 ms
36,888 KB
testcase_18 WA -
testcase_19 AC 45 ms
36,992 KB
testcase_20 WA -
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

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