結果

問題 No.47 ポケットを叩くとビスケットが2倍
ユーザー StarMatyan
提出日時 2018-07-20 00:23:47
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 5,000 ms
コード長 194 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 12,288 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-12-25 22:13:26
合計ジャッジ時間 1,665 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

numer = int(input());
count = 0;

while numer > 1:
    if numer%2 ==0:
        numer = int(numer/2);
    else:
        numer = int((numer+1)/2);
        
    
    count=count+1;

print(count);	
0