結果

問題 No.166 マス埋めゲーム
ユーザー takeya_okinotakeya_okino
提出日時 2017-06-22 10:57:23
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 335 bytes
コンパイル時間 2,189 ms
コンパイル使用メモリ 74,624 KB
実行使用メモリ 54,248 KB
最終ジャッジ日時 2024-10-02 10:12:42
合計ジャッジ時間 5,742 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 17 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    long H = sc.nextLong();
    long W = sc.nextLong();
    long N = sc.nextLong();
    long K = sc.nextLong();
    String ans = "NO";
    if(((H * W) % N) == K) ans = "YES";
    System.out.println(ans);
  }
}
0