結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー otsunekootsuneko
提出日時 2021-05-14 16:15:28
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 36 ms / 5,000 ms
コード長 139 bytes
コンパイル時間 234 ms
コンパイル使用メモリ 82,604 KB
実行使用メモリ 53,492 KB
最終ジャッジ日時 2024-04-09 20:26:43
合計ジャッジ時間 1,859 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 32 ms
53,280 KB
testcase_01 AC 33 ms
51,960 KB
testcase_02 AC 32 ms
53,012 KB
testcase_03 AC 30 ms
52,532 KB
testcase_04 AC 30 ms
52,616 KB
testcase_05 AC 30 ms
53,000 KB
testcase_06 AC 30 ms
52,460 KB
testcase_07 AC 33 ms
52,316 KB
testcase_08 AC 30 ms
52,800 KB
testcase_09 AC 31 ms
53,492 KB
testcase_10 AC 30 ms
52,760 KB
testcase_11 AC 31 ms
52,344 KB
testcase_12 AC 36 ms
53,132 KB
testcase_13 AC 30 ms
51,832 KB
testcase_14 AC 30 ms
52,364 KB
testcase_15 AC 31 ms
52,500 KB
testcase_16 AC 31 ms
52,312 KB
testcase_17 AC 31 ms
53,004 KB
testcase_18 AC 31 ms
52,580 KB
testcase_19 AC 30 ms
52,988 KB
testcase_20 AC 30 ms
52,804 KB
testcase_21 AC 31 ms
52,332 KB
testcase_22 AC 30 ms
52,672 KB
testcase_23 AC 31 ms
52,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

biscuit = 1
cnt = 0
while 1:
    if biscuit >= N:
        print(cnt)
        break
    biscuit *= 2
    cnt += 1
0