結果

問題 No.166 マス埋めゲーム
ユーザー takeya_okinotakeya_okino
提出日時 2017-06-22 10:57:23
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 335 bytes
コンパイル時間 2,171 ms
コンパイル使用メモリ 74,068 KB
実行使用メモリ 55,908 KB
最終ジャッジ日時 2024-04-10 08:31:01
合計ジャッジ時間 6,313 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 127 ms
53,880 KB
testcase_02 AC 129 ms
54,360 KB
testcase_03 AC 129 ms
54,168 KB
testcase_04 AC 131 ms
54,040 KB
testcase_05 AC 128 ms
54,392 KB
testcase_06 WA -
testcase_07 AC 127 ms
53,920 KB
testcase_08 AC 130 ms
54,156 KB
testcase_09 AC 134 ms
54,196 KB
testcase_10 AC 127 ms
54,224 KB
testcase_11 AC 126 ms
53,968 KB
testcase_12 AC 113 ms
53,100 KB
testcase_13 AC 127 ms
54,352 KB
testcase_14 AC 125 ms
53,960 KB
testcase_15 AC 131 ms
54,068 KB
testcase_16 AC 116 ms
53,056 KB
testcase_17 WA -
testcase_18 AC 129 ms
54,200 KB
testcase_19 AC 128 ms
54,192 KB
testcase_20 AC 128 ms
53,976 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

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