結果

問題 No.820 Power of Two
ユーザー 💕💖💞💕💖💞
提出日時 2019-05-06 12:43:13
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 269 ms / 2,000 ms
コード長 203 bytes
コンパイル時間 11,456 ms
コンパイル使用メモリ 434,556 KB
実行使用メモリ 57,172 KB
最終ジャッジ日時 2024-04-30 20:26:46
合計ジャッジ時間 12,699 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 267 ms
56,992 KB
testcase_01 AC 260 ms
57,136 KB
testcase_02 AC 269 ms
57,076 KB
testcase_03 AC 261 ms
57,000 KB
testcase_04 AC 267 ms
57,072 KB
testcase_05 AC 265 ms
57,008 KB
testcase_06 AC 265 ms
57,056 KB
testcase_07 AC 269 ms
57,172 KB
testcase_08 AC 258 ms
57,008 KB
testcase_09 AC 258 ms
57,004 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:2:10: warning: parameter 'args' is never used
fun main(args:Array<String>){
         ^

ソースコード

diff #

import java.lang.Math
fun main(args:Array<String>){
    val ( a, b) = readLine()!!.split(" ").map { it.toDouble() }
    // println("$a, $b")
    println( (Math.pow(2.0, a)/Math.pow(2.0, b)).toLong() )
}
0