結果

問題 No.166 マス埋めゲーム
ユーザー spaciaspacia
提出日時 2015-12-20 11:29:48
言語 Java21
(openjdk 21)
結果
AC  
実行時間 56 ms / 1,000 ms
コード長 547 bytes
コンパイル時間 2,103 ms
コンパイル使用メモリ 74,444 KB
実行使用メモリ 53,488 KB
最終ジャッジ日時 2023-10-17 14:10:27
合計ジャッジ時間 4,195 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

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