結果

問題 No.820 Power of Two
ユーザー MaboyMaboy
提出日時 2021-06-18 15:15:25
言語 Swift
(5.10.0)
結果
AC  
実行時間 6 ms / 2,000 ms
コード長 126 bytes
コンパイル時間 9,117 ms
コンパイル使用メモリ 149,780 KB
実行使用メモリ 13,456 KB
最終ジャッジ日時 2023-09-04 09:24:18
合計ジャッジ時間 9,988 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 6 ms
13,204 KB
testcase_01 AC 6 ms
13,456 KB
testcase_02 AC 6 ms
13,372 KB
testcase_03 AC 6 ms
13,148 KB
testcase_04 AC 6 ms
13,332 KB
testcase_05 AC 6 ms
13,208 KB
testcase_06 AC 6 ms
13,404 KB
testcase_07 AC 6 ms
13,336 KB
testcase_08 AC 6 ms
13,224 KB
testcase_09 AC 5 ms
13,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import Foundation
let n = readLine()!.split(separator: " ").map{Double($0)!}
var x = Int(pow(2, n[0]) / pow(2, n[1]))
print(x)
0