結果
| 問題 | No.47 ポケットを叩くとビスケットが2倍 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-22 21:45:35 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 91 ms / 5,000 ms |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 77,372 KB |
| 最終ジャッジ日時 | 2025-12-03 22:19:52 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
N = int(raw_input())
biscuit = 2
times = 1
if N == 1:
print "0"
else:
while True:
if biscuit * 2 < N:
biscuit *= 2
times += 1
else:
break
if N == biscuit:
print times
else:
times += 1
print times