結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-03-13 16:45:08 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 25 ms / 5,000 ms |
| コード長 | 172 bytes |
| 記録 | |
| コンパイル時間 | 108 ms |
| コンパイル使用メモリ | 85,524 KB |
| 実行使用メモリ | 53,976 KB |
| 最終ジャッジ日時 | 2026-04-07 02:19:48 |
| 合計ジャッジ時間 | 1,448 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
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)