結果
問題 | No.820 Power of Two |
ユーザー |
![]() |
提出日時 | 2019-05-06 12:43:13 |
言語 | Kotlin (2.1.0) |
結果 |
AC
|
実行時間 | 294 ms / 2,000 ms |
コード長 | 203 bytes |
コンパイル時間 | 11,551 ms |
コンパイル使用メモリ | 434,720 KB |
実行使用メモリ | 51,748 KB |
最終ジャッジ日時 | 2024-11-20 18:09:25 |
合計ジャッジ時間 | 13,627 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
Main.kt:2:10: warning: parameter 'args' is never used fun main(args:Array<String>){ ^
ソースコード
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() ) }