結果

問題 No.2241 Reach 1
ユーザー Carpenters-Cat
提出日時 2023-03-10 21:41:08
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 152 bytes
コンパイル時間 309 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-09-18 03:54:54
合計ジャッジ時間 2,633 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 13 WA * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
while N > 1 :
    if N & 1 :
        N += 1
    else :
        while (N & 1) == 0 :
            N >>= 1
    ans += 1
print(ans)
0