結果

問題 No.537 ユーザーID
ユーザー neko_the_shadowneko_the_shadow
提出日時 2018-12-05 23:54:24
言語 Scala(Beta)
(3.4.0)
結果
RE  
実行時間 -
コード長 271 bytes
コンパイル時間 8,766 ms
コンパイル使用メモリ 248,580 KB
実行使用メモリ 63,172 KB
最終ジャッジ日時 2023-09-13 21:16:59
合計ジャッジ時間 44,348 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 960 ms
62,396 KB
testcase_01 AC 963 ms
62,620 KB
testcase_02 AC 962 ms
62,276 KB
testcase_03 AC 966 ms
62,700 KB
testcase_04 AC 953 ms
62,976 KB
testcase_05 AC 969 ms
63,172 KB
testcase_06 AC 962 ms
63,008 KB
testcase_07 AC 958 ms
62,724 KB
testcase_08 AC 967 ms
62,764 KB
testcase_09 AC 949 ms
62,432 KB
testcase_10 AC 957 ms
62,508 KB
testcase_11 AC 952 ms
62,688 KB
testcase_12 AC 944 ms
62,436 KB
testcase_13 AC 950 ms
62,872 KB
testcase_14 AC 956 ms
62,704 KB
testcase_15 AC 956 ms
62,548 KB
testcase_16 AC 960 ms
62,504 KB
testcase_17 AC 948 ms
62,532 KB
testcase_18 RE -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 RE -
testcase_25 RE -
testcase_26 RE -
testcase_27 RE -
testcase_28 RE -
testcase_29 RE -
testcase_30 RE -
testcase_31 RE -
testcase_32 RE -
testcase_33 RE -
testcase_34 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

object Q537 {
  def main(args: Array[String]): Unit = {
    val n = io.StdIn.readLine().toInt
    val answer = (1 to math.sqrt(n).toInt).filter(n % _ == 0).flatMap(x => {
      val y = n / x
      Seq(s"${x}${y}", s"${y}${x}")
    }).toSet.size
    println(answer)
  }
}
0