結果

問題 No.166 マス埋めゲーム
ユーザー ちよちゃん
提出日時 2016-06-07 20:19:10
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 434 bytes
コンパイル時間 3,693 ms
コンパイル使用メモリ 77,784 KB
実行使用メモリ 41,432 KB
最終ジャッジ日時 2024-10-08 18:10:44
合計ジャッジ時間 7,267 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 9 WA * 6 RE * 5
権限があれば一括ダウンロードができます

ソースコード

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