結果

問題 No.820 Power of Two
ユーザー バカらっくバカらっく
提出日時 2022-02-04 10:31:49
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 295 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 12,157 ms
コンパイル使用メモリ 419,880 KB
実行使用メモリ 52,960 KB
最終ジャッジ日時 2023-09-02 03:27:51
合計ジャッジ時間 15,378 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 286 ms
52,780 KB
testcase_01 AC 284 ms
52,804 KB
testcase_02 AC 287 ms
52,792 KB
testcase_03 AC 281 ms
52,496 KB
testcase_04 AC 284 ms
52,672 KB
testcase_05 AC 291 ms
52,820 KB
testcase_06 AC 295 ms
52,884 KB
testcase_07 AC 288 ms
52,660 KB
testcase_08 AC 290 ms
52,960 KB
testcase_09 AC 289 ms
52,808 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
    val (n,k) = readLine()!!.split(" ").map { it.toInt() }
    val ans = (1 shl n) / (1 shl k)
    println(ans)
}
0