結果

問題 No.166 マス埋めゲーム
ユーザー ちよちゃんちよちゃん
提出日時 2016-06-07 20:19:10
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 3,644 ms
コンパイル使用メモリ 74,808 KB
実行使用メモリ 41,704 KB
最終ジャッジ日時 2024-04-17 06:04:54
合計ジャッジ時間 7,453 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 127 ms
41,520 KB
testcase_02 AC 124 ms
41,304 KB
testcase_03 AC 128 ms
41,424 KB
testcase_04 AC 129 ms
41,568 KB
testcase_05 AC 128 ms
41,368 KB
testcase_06 WA -
testcase_07 AC 128 ms
41,244 KB
testcase_08 AC 130 ms
41,376 KB
testcase_09 AC 124 ms
41,200 KB
testcase_10 AC 131 ms
41,448 KB
testcase_11 AC 132 ms
41,500 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

package yukicoder;

import java.util.Scanner;

public class Yuki166 {
	
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int h = scan.nextInt();
		int w = scan.nextInt();
		int n = scan.nextInt();
		int k = scan.nextInt();
		scan.close();
		
		int mas = (h * w) % n;
		// System.out.println(mas);

		if( mas - k == 0){
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}	
}
0