結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー EscaityEscaity
提出日時 2021-02-13 14:00:46
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 112 bytes
コンパイル時間 723 ms
コンパイル使用メモリ 87,180 KB
実行使用メモリ 71,620 KB
最終ジャッジ日時 2023-09-27 22:25:31
合計ジャッジ時間 3,174 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 66 ms
71,400 KB
testcase_02 AC 69 ms
71,308 KB
testcase_03 AC 67 ms
71,368 KB
testcase_04 AC 65 ms
71,256 KB
testcase_05 WA -
testcase_06 AC 66 ms
71,388 KB
testcase_07 WA -
testcase_08 AC 65 ms
71,548 KB
testcase_09 AC 62 ms
71,516 KB
testcase_10 AC 66 ms
71,384 KB
testcase_11 AC 66 ms
71,248 KB
testcase_12 AC 64 ms
71,424 KB
testcase_13 AC 64 ms
71,288 KB
testcase_14 AC 63 ms
71,480 KB
testcase_15 AC 62 ms
71,348 KB
testcase_16 AC 64 ms
71,592 KB
testcase_17 AC 68 ms
71,340 KB
testcase_18 AC 65 ms
71,404 KB
testcase_19 AC 64 ms
71,600 KB
testcase_20 AC 65 ms
71,304 KB
testcase_21 AC 66 ms
71,552 KB
testcase_22 AC 67 ms
71,332 KB
testcase_23 AC 67 ms
71,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
c, ans = 1, 1
while True:
    c *= 2
    ans += 1
    if c >= n // 2:
        break
print(ans)
0