結果

問題 No.1372 Median of Submasks
ユーザー 👑 yumechiyumechi
提出日時 2021-03-03 00:38:18
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 1,091 ms / 2,000 ms
コード長 204 bytes
コンパイル時間 10,250 ms
コンパイル使用メモリ 274,388 KB
実行使用メモリ 65,512 KB
最終ジャッジ日時 2024-04-14 05:47:09
合計ジャッジ時間 39,929 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1,045 ms
65,296 KB
testcase_01 AC 1,016 ms
65,256 KB
testcase_02 AC 1,039 ms
65,180 KB
testcase_03 AC 1,030 ms
65,336 KB
testcase_04 AC 1,038 ms
65,292 KB
testcase_05 AC 982 ms
65,136 KB
testcase_06 AC 977 ms
65,284 KB
testcase_07 AC 1,012 ms
65,348 KB
testcase_08 AC 1,037 ms
65,364 KB
testcase_09 AC 976 ms
65,200 KB
testcase_10 AC 1,014 ms
65,288 KB
testcase_11 AC 1,046 ms
65,344 KB
testcase_12 AC 1,024 ms
65,188 KB
testcase_13 AC 1,031 ms
65,192 KB
testcase_14 AC 1,091 ms
65,116 KB
testcase_15 AC 1,062 ms
65,104 KB
testcase_16 AC 1,011 ms
65,308 KB
testcase_17 AC 982 ms
65,108 KB
testcase_18 AC 969 ms
65,424 KB
testcase_19 AC 972 ms
65,316 KB
testcase_20 AC 1,065 ms
65,248 KB
testcase_21 AC 1,038 ms
65,212 KB
testcase_22 AC 1,042 ms
65,344 KB
testcase_23 AC 1,031 ms
65,404 KB
testcase_24 AC 1,027 ms
65,512 KB
testcase_25 AC 979 ms
65,368 KB
権限があれば一括ダウンロードができます

ソースコード

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).toLong).filter(a => a <= n).max)
}
0