結果

問題 No.1372 Median of Submasks
ユーザー 👑 yumechiyumechi
提出日時 2021-03-03 00:39:20
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 969 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 10,791 ms
コンパイル使用メモリ 271,784 KB
実行使用メモリ 65,312 KB
最終ジャッジ日時 2024-04-14 05:47:57
合計ジャッジ時間 35,872 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 960 ms
65,120 KB
testcase_01 AC 959 ms
65,148 KB
testcase_02 AC 960 ms
64,972 KB
testcase_03 AC 969 ms
65,040 KB
testcase_04 AC 955 ms
65,096 KB
testcase_05 AC 956 ms
64,992 KB
testcase_06 AC 966 ms
65,224 KB
testcase_07 AC 953 ms
65,240 KB
testcase_08 AC 965 ms
65,064 KB
testcase_09 AC 958 ms
65,312 KB
testcase_10 AC 956 ms
65,128 KB
testcase_11 AC 960 ms
65,152 KB
testcase_12 AC 960 ms
65,120 KB
testcase_13 AC 961 ms
65,312 KB
testcase_14 AC 957 ms
65,244 KB
testcase_15 AC 955 ms
65,168 KB
testcase_16 AC 962 ms
64,984 KB
testcase_17 AC 967 ms
65,140 KB
testcase_18 AC 959 ms
65,196 KB
testcase_19 AC 967 ms
64,952 KB
testcase_20 AC 963 ms
65,192 KB
testcase_21 AC 960 ms
65,244 KB
testcase_22 AC 961 ms
65,160 KB
testcase_23 AC 956 ms
65,164 KB
testcase_24 AC 963 ms
65,088 KB
testcase_25 AC 952 ms
65,056 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 => BigInt(2).pow(a)).filter(a => a <= n).max)
}
0