結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー ponponpopponponpop
提出日時 2018-09-02 17:46:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 5,000 ms
コード長 149 bytes
コンパイル時間 183 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 53,960 KB
最終ジャッジ日時 2024-04-09 20:44:22
合計ジャッジ時間 1,834 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,416 KB
testcase_01 AC 34 ms
53,008 KB
testcase_02 AC 33 ms
53,280 KB
testcase_03 AC 34 ms
52,052 KB
testcase_04 AC 33 ms
53,372 KB
testcase_05 AC 33 ms
51,820 KB
testcase_06 AC 33 ms
52,420 KB
testcase_07 AC 34 ms
53,308 KB
testcase_08 AC 39 ms
53,364 KB
testcase_09 AC 34 ms
53,192 KB
testcase_10 AC 35 ms
53,924 KB
testcase_11 AC 34 ms
52,580 KB
testcase_12 AC 35 ms
52,140 KB
testcase_13 AC 34 ms
52,096 KB
testcase_14 AC 33 ms
52,188 KB
testcase_15 AC 33 ms
52,248 KB
testcase_16 AC 32 ms
53,132 KB
testcase_17 AC 34 ms
52,216 KB
testcase_18 AC 33 ms
51,928 KB
testcase_19 AC 32 ms
52,432 KB
testcase_20 AC 32 ms
52,204 KB
testcase_21 AC 33 ms
53,328 KB
testcase_22 AC 33 ms
53,960 KB
testcase_23 AC 35 ms
52,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
total=1
if n==1:
    print(0)
    exit()
for i in range(1,100000):
    total=total *2
    if total >=n:
        print(i)
        break
0