結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー shokayamorishokayamori
提出日時 2020-06-17 02:34:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 96 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 10,636 KB
実行使用メモリ 8,052 KB
最終ジャッジ日時 2023-09-16 11:15:39
合計ジャッジ時間 1,569 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,896 KB
testcase_01 AC 16 ms
7,868 KB
testcase_02 AC 18 ms
7,944 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 16 ms
7,956 KB
testcase_07 AC 16 ms
7,932 KB
testcase_08 AC 15 ms
7,872 KB
testcase_09 AC 16 ms
7,872 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 AC 16 ms
7,876 KB
testcase_16 AC 15 ms
7,896 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 16 ms
7,932 KB
testcase_22 AC 16 ms
7,916 KB
testcase_23 AC 15 ms
7,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

N = int(input())
n = int(math.log2(N))
if N%2==0:
    print(n)
else:
    print(n+1)
0