結果
| 問題 | No.47 ポケットを叩くとビスケットが2倍 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-22 21:45:35 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 5,000 ms |
| + 87µs | |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 80,928 KB |
| 実行使用メモリ | 80,896 KB |
| 最終ジャッジ日時 | 2026-07-18 10:04:13 |
| 合計ジャッジ時間 | 3,215 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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