結果

問題 No.1372 Median of Submasks
ユーザー 👑 yumechiyumechi
提出日時 2021-03-03 00:37:00
言語 Scala(Beta)
(3.4.0)
結果
WA  
実行時間 -
コード長 203 bytes
コンパイル時間 9,188 ms
コンパイル使用メモリ 278,244 KB
実行使用メモリ 65,472 KB
最終ジャッジ日時 2024-04-14 05:46:17
合計ジャッジ時間 36,323 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 957 ms
65,336 KB
testcase_01 AC 963 ms
65,232 KB
testcase_02 AC 984 ms
65,212 KB
testcase_03 AC 954 ms
65,348 KB
testcase_04 AC 961 ms
65,184 KB
testcase_05 AC 959 ms
65,360 KB
testcase_06 AC 962 ms
65,396 KB
testcase_07 AC 957 ms
65,188 KB
testcase_08 AC 957 ms
65,356 KB
testcase_09 WA -
testcase_10 AC 952 ms
65,356 KB
testcase_11 WA -
testcase_12 AC 950 ms
65,336 KB
testcase_13 AC 948 ms
65,380 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)

  val n = BigInt(sc.next)
  println((0 to 60).toList.map(a => scala.math.pow(2, a).toInt).filter(a => a <= n).max)
}
0