結果

問題 No.166 マス埋めゲーム
ユーザー shinwisteriashinwisteria
提出日時 2019-01-24 21:22:34
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 1,000 ms
コード長 329 bytes
コンパイル時間 3,235 ms
コンパイル使用メモリ 72,068 KB
実行使用メモリ 56,656 KB
最終ジャッジ日時 2023-10-14 09:44:43
合計ジャッジ時間 6,906 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,784 KB
testcase_01 AC 122 ms
55,692 KB
testcase_02 AC 120 ms
55,820 KB
testcase_03 AC 121 ms
55,808 KB
testcase_04 AC 123 ms
56,244 KB
testcase_05 AC 121 ms
55,912 KB
testcase_06 AC 121 ms
56,656 KB
testcase_07 AC 122 ms
55,628 KB
testcase_08 AC 120 ms
55,820 KB
testcase_09 AC 119 ms
55,820 KB
testcase_10 AC 120 ms
55,372 KB
testcase_11 AC 122 ms
55,708 KB
testcase_12 AC 120 ms
55,584 KB
testcase_13 AC 120 ms
55,956 KB
testcase_14 AC 126 ms
55,844 KB
testcase_15 AC 121 ms
55,964 KB
testcase_16 AC 122 ms
55,860 KB
testcase_17 AC 120 ms
55,800 KB
testcase_18 AC 121 ms
55,972 KB
testcase_19 AC 120 ms
55,800 KB
testcase_20 AC 121 ms
55,912 KB
testcase_21 AC 120 ms
55,936 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
public class No166 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		long h = s.nextLong() , w = s.nextLong() , n = s.nextLong() , k = s.nextLong();
		s.close();

		if(h * w % n == k % n){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	}

}
0