結果

問題 No.104 国道
ユーザー aaaaaaaaaa2230
提出日時 2022-03-13 16:45:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 5,000 ms
コード長 172 bytes
コンパイル時間 149 ms
コンパイル使用メモリ 81,964 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-09-18 23:57:53
合計ジャッジ時間 1,773 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys


def input(): return sys.stdin.readline().rstrip()

S = input()
now = 1
for s in S:
    if s == "L":
        now *= 2
    else:
        now = now*2+1
print(now)
0