結果

問題 No.166 マス埋めゲーム
ユーザー spaciaspacia
提出日時 2015-12-20 11:19:23
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 551 bytes
コンパイル時間 2,389 ms
コンパイル使用メモリ 74,460 KB
実行使用メモリ 53,636 KB
最終ジャッジ日時 2023-10-17 14:09:47
合計ジャッジ時間 4,241 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
53,480 KB
testcase_01 AC 53 ms
51,432 KB
testcase_02 AC 53 ms
53,480 KB
testcase_03 AC 54 ms
53,488 KB
testcase_04 AC 54 ms
53,480 KB
testcase_05 AC 54 ms
53,480 KB
testcase_06 AC 54 ms
53,484 KB
testcase_07 AC 54 ms
53,472 KB
testcase_08 AC 54 ms
53,488 KB
testcase_09 AC 53 ms
53,492 KB
testcase_10 AC 54 ms
53,476 KB
testcase_11 AC 54 ms
53,480 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 54 ms
53,480 KB
testcase_18 WA -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
import java.math.*;

class Main166 {
	
	public static void out (Object out) {
		System.out.println(out);
	}
	
	public static void main (String[] args) throws IOException {
		BufferedReader br = 
			new BufferedReader(new InputStreamReader(System.in));
		
		String[] line = br.readLine().split(" ");
		int h = Integer.parseInt(line[0]);
		int w = Integer.parseInt(line[1]);
		int n = Integer.parseInt(line[2]);
		int k = Integer.parseInt(line[3]) % n;
		
		System.out.println((h * w) % n == k ? "YES" : "NO");
	}
}
0