結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー TwizzTwizz
提出日時 2017-02-21 20:04:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 122 bytes
コンパイル時間 224 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 8,024 KB
最終ジャッジ日時 2023-08-28 23:36:48
合計ジャッジ時間 1,518 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 14 ms
7,920 KB
testcase_02 AC 14 ms
7,768 KB
testcase_03 AC 14 ms
7,764 KB
testcase_04 AC 15 ms
7,836 KB
testcase_05 AC 15 ms
7,836 KB
testcase_06 AC 15 ms
7,860 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 14 ms
7,808 KB
testcase_11 AC 14 ms
7,776 KB
testcase_12 AC 14 ms
7,740 KB
testcase_13 AC 14 ms
7,924 KB
testcase_14 AC 15 ms
7,768 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 15 ms
7,864 KB
testcase_18 AC 14 ms
7,744 KB
testcase_19 AC 15 ms
7,876 KB
testcase_20 AC 14 ms
7,804 KB
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
i=0
while N/2 >= 2**i:
    i+=1

if N!=2**i:
    if N%2==0:
        i=i+1
    else:
        i=i+2

print(i)
0