結果

問題 No.884 Eat and Add
ユーザー convexineq
提出日時 2020-11-01 09:14:02
言語 PyPy3
(7.3.15)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 169 bytes
コンパイル時間 226 ms
コンパイル使用メモリ 82,308 KB
実行使用メモリ 77,860 KB
最終ジャッジ日時 2024-07-22 05:39:12
合計ジャッジ時間 6,882 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 TLE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

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