結果

問題 No.166 マス埋めゲーム
ユーザー くわいくわい
提出日時 2015-12-25 17:36:35
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 7,904 ms
コンパイル使用メモリ 236,816 KB
実行使用メモリ 64,380 KB
最終ジャッジ日時 2023-09-11 22:56:13
合計ジャッジ時間 32,049 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 934 ms
62,952 KB
testcase_01 AC 955 ms
62,732 KB
testcase_02 AC 964 ms
62,968 KB
testcase_03 WA -
testcase_04 AC 952 ms
63,008 KB
testcase_05 WA -
testcase_06 AC 954 ms
63,040 KB
testcase_07 WA -
testcase_08 AC 949 ms
62,860 KB
testcase_09 AC 965 ms
62,832 KB
testcase_10 AC 983 ms
62,944 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 936 ms
62,652 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 960 ms
62,784 KB
testcase_18 WA -
testcase_19 AC 966 ms
63,208 KB
testcase_20 WA -
testcase_21 AC 933 ms
62,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner

object Yukicoder extends App {
  val sc = new Scanner(System.in)
  val H = sc.nextLong()
  val W = sc.nextLong()
  val N = sc.nextLong()
  val K = sc.nextLong()

  val field = H * W
  val result = if ((field + K) % N == 0) "YES" else "NO"
  println(result)
}
0