結果
| 問題 | 
                            No.104 国道
                             | 
                    
| コンテスト | |
| ユーザー | 
                             sobasobasoba
                         | 
                    
| 提出日時 | 2014-12-16 23:32:47 | 
| 言語 | Python2  (2.7.18)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 13 ms / 5,000 ms | 
| コード長 | 126 bytes | 
| コンパイル時間 | 247 ms | 
| コンパイル使用メモリ | 7,204 KB | 
| 実行使用メモリ | 6,400 KB | 
| 最終ジャッジ日時 | 2024-06-11 21:59:05 | 
| 合計ジャッジ時間 | 1,259 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 16 | 
ソースコード
#!/usr/bin/env python
ans = 1
for ch in raw_input().strip():
    ans = ans * 2 if ch == 'L' else ans * 2 + 1
print ans
            
            
            
        
            
sobasobasoba