結果

問題 No.166 マス埋めゲーム
ユーザー ぴろずぴろず
提出日時 2015-03-19 23:22:27
言語 Java21
(openjdk 21)
結果
RE  
実行時間 -
コード長 355 bytes
コンパイル時間 4,163 ms
コンパイル使用メモリ 70,816 KB
実行使用メモリ 56,084 KB
最終ジャッジ日時 2023-09-11 08:35:25
合計ジャッジ時間 6,424 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
55,852 KB
testcase_01 AC 126 ms
55,856 KB
testcase_02 AC 126 ms
55,836 KB
testcase_03 AC 125 ms
55,488 KB
testcase_04 AC 124 ms
55,872 KB
testcase_05 AC 126 ms
55,748 KB
testcase_06 AC 125 ms
55,768 KB
testcase_07 AC 126 ms
55,712 KB
testcase_08 AC 126 ms
55,812 KB
testcase_09 AC 125 ms
55,712 KB
testcase_10 AC 126 ms
55,700 KB
testcase_11 AC 127 ms
55,436 KB
testcase_12 AC 126 ms
56,072 KB
testcase_13 AC 125 ms
55,500 KB
testcase_14 RE -
testcase_15 AC 126 ms
55,496 KB
testcase_16 AC 124 ms
55,608 KB
testcase_17 AC 127 ms
55,688 KB
testcase_18 AC 127 ms
55,724 KB
testcase_19 RE -
testcase_20 AC 125 ms
55,488 KB
testcase_21 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

package no167;

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int h = sc.nextInt();
		int w = sc.nextInt();
		long n = sc.nextLong();
		long k = sc.nextInt();
		if ((long) h * w % n == k % n) {
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}
}
0