結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
51,700 KB
testcase_01 AC 38 ms
53,296 KB
testcase_02 AC 35 ms
51,828 KB
testcase_03 AC 35 ms
53,288 KB
testcase_04 AC 34 ms
52,408 KB
testcase_05 WA -
testcase_06 AC 38 ms
52,084 KB
testcase_07 AC 36 ms
52,556 KB
testcase_08 AC 35 ms
51,624 KB
testcase_09 AC 34 ms
52,468 KB
testcase_10 AC 34 ms
52,216 KB
testcase_11 AC 34 ms
52,880 KB
testcase_12 AC 37 ms
52,068 KB
testcase_13 AC 35 ms
53,680 KB
testcase_14 AC 34 ms
52,276 KB
testcase_15 AC 34 ms
53,540 KB
testcase_16 AC 35 ms
53,016 KB
testcase_17 AC 36 ms
52,356 KB
testcase_18 AC 35 ms
52,704 KB
testcase_19 AC 35 ms
53,084 KB
testcase_20 AC 36 ms
53,488 KB
testcase_21 AC 37 ms
52,752 KB
testcase_22 AC 36 ms
52,364 KB
testcase_23 AC 36 ms
52,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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