結果

問題 No.166 マス埋めゲーム
ユーザー jimano
提出日時 2018-02-10 16:04:05
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 557 bytes
コンパイル時間 2,876 ms
コンパイル使用メモリ 73,548 KB
実行使用メモリ 37,396 KB
最終ジャッジ日時 2024-10-14 14:16:13
合計ジャッジ時間 4,927 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 7 WA * 8 RE * 5
権限があれば一括ダウンロードができます

ソースコード

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