結果
| 問題 | 
                            No.642 Two Operations No.1
                             | 
                    
| コンテスト | |
| ユーザー | 
                             norioc
                         | 
                    
| 提出日時 | 2025-05-30 00:12:59 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 38 ms / 2,000 ms | 
| コード長 | 131 bytes | 
| コンパイル時間 | 443 ms | 
| コンパイル使用メモリ | 81,736 KB | 
| 実行使用メモリ | 53,276 KB | 
| 最終ジャッジ日時 | 2025-05-30 00:13:01 | 
| 合計ジャッジ時間 | 2,273 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 15 | 
ソースコード
N = int(input())
ans = 0
x = N
while x > 1:
    if x % 2 == 0:
        x //= 2
    else:
        x += 1
    ans += 1
print(ans)
            
            
            
        
            
norioc