結果

問題 No.104 国道
ユーザー brthyyjp
提出日時 2021-07-29 19:10:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 117 bytes
コンパイル時間 370 ms
コンパイル使用メモリ 82,048 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-09-14 15:54:46
合計ジャッジ時間 2,070 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

s = str(input())
ans = 1
for c in s:
    if c == 'L':
        ans = 2*ans
    else:
        ans = 2*ans+1
print(ans)
0