結果

問題 No.537 ユーザーID
ユーザー neko_the_shadowneko_the_shadow
提出日時 2018-12-05 23:56:21
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 1,120 ms / 2,000 ms
コード長 272 bytes
コンパイル時間 8,420 ms
コンパイル使用メモリ 251,288 KB
実行使用メモリ 63,452 KB
最終ジャッジ日時 2023-09-13 21:18:04
合計ジャッジ時間 45,298 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 953 ms
62,840 KB
testcase_01 AC 968 ms
62,688 KB
testcase_02 AC 955 ms
62,496 KB
testcase_03 AC 945 ms
62,624 KB
testcase_04 AC 938 ms
62,392 KB
testcase_05 AC 944 ms
62,596 KB
testcase_06 AC 950 ms
62,636 KB
testcase_07 AC 959 ms
62,640 KB
testcase_08 AC 963 ms
62,740 KB
testcase_09 AC 942 ms
62,324 KB
testcase_10 AC 942 ms
62,368 KB
testcase_11 AC 951 ms
62,364 KB
testcase_12 AC 954 ms
62,780 KB
testcase_13 AC 958 ms
62,732 KB
testcase_14 AC 965 ms
62,796 KB
testcase_15 AC 958 ms
62,700 KB
testcase_16 AC 956 ms
62,740 KB
testcase_17 AC 964 ms
62,732 KB
testcase_18 AC 1,008 ms
63,052 KB
testcase_19 AC 999 ms
62,988 KB
testcase_20 AC 998 ms
62,364 KB
testcase_21 AC 993 ms
62,700 KB
testcase_22 AC 1,010 ms
62,824 KB
testcase_23 AC 1,016 ms
62,996 KB
testcase_24 AC 978 ms
62,516 KB
testcase_25 AC 1,005 ms
62,752 KB
testcase_26 AC 1,015 ms
62,668 KB
testcase_27 AC 992 ms
63,064 KB
testcase_28 AC 1,046 ms
63,092 KB
testcase_29 AC 1,120 ms
63,156 KB
testcase_30 AC 1,105 ms
63,452 KB
testcase_31 AC 997 ms
62,948 KB
testcase_32 AC 999 ms
62,936 KB
testcase_33 AC 1,063 ms
63,104 KB
testcase_34 AC 1,023 ms
62,904 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

object Q537 {
  def main(args: Array[String]): Unit = {
    val n = io.StdIn.readLine().toLong
    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