結果

問題 No.104 国道
コンテスト
ユーザー hikomimo
提出日時 2015-01-25 11:43:28
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 76 ms / 5,000 ms
コード長 242 bytes
記録
コンパイル時間 148 ms
コンパイル使用メモリ 77,620 KB
最終ジャッジ日時 2025-12-03 13:31:38
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

# -*- coding: utf-8 -*-




def main():
    S = raw_input()
    res = 1
    for d in S:
        if d == "L":
            res = res * 2
        elif d == "R":
            res = res * 2 + 1
    print res


if __name__ == '__main__':
    main()
0