結果
| 問題 |
No.104 国道
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-03-31 13:00:44 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 48 ms / 5,000 ms |
| コード長 | 172 bytes |
| コンパイル時間 | 652 ms |
| コンパイル使用メモリ | 82,384 KB |
| 実行使用メモリ | 53,616 KB |
| 最終ジャッジ日時 | 2024-06-26 01:20:55 |
| 合計ジャッジ時間 | 2,441 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
#!/usr/bin/env python
indat = list(input().strip())
ans = 1
for s in indat:
if s == 'L':
ans = ans * 2
elif s == 'R':
ans = ans * 2 +1
print(ans)