結果

問題 No.166 マス埋めゲーム
ユーザー Mcpu3Mcpu3
提出日時 2018-06-23 20:40:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 281 bytes
コンパイル時間 1,881 ms
コンパイル使用メモリ 71,820 KB
実行使用メモリ 58,144 KB
最終ジャッジ日時 2023-09-13 08:36:45
合計ジャッジ時間 5,569 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,896 KB
testcase_01 AC 120 ms
55,700 KB
testcase_02 AC 119 ms
56,540 KB
testcase_03 AC 120 ms
58,144 KB
testcase_04 AC 120 ms
55,868 KB
testcase_05 AC 119 ms
55,476 KB
testcase_06 AC 119 ms
56,088 KB
testcase_07 AC 122 ms
55,740 KB
testcase_08 AC 122 ms
56,012 KB
testcase_09 AC 115 ms
55,984 KB
testcase_10 AC 121 ms
55,792 KB
testcase_11 AC 120 ms
55,904 KB
testcase_12 AC 126 ms
56,060 KB
testcase_13 AC 122 ms
55,684 KB
testcase_14 AC 121 ms
55,884 KB
testcase_15 AC 119 ms
55,776 KB
testcase_16 AC 120 ms
55,700 KB
testcase_17 AC 120 ms
55,988 KB
testcase_18 AC 121 ms
56,048 KB
testcase_19 AC 122 ms
57,828 KB
testcase_20 AC 123 ms
54,424 KB
testcase_21 AC 121 ms
55,952 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no166{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		long h=stdIn.nextLong(),w=stdIn.nextLong(),n=stdIn.nextLong(),k=stdIn.nextLong();
		System.out.print(h*w-h*w/n*n==k||h*w%n==0&&n==k?"YES":"NO");
	}
}
0