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