結果
| 問題 | No.104 国道 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-05-13 19:15:01 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 21 ms / 5,000 ms |
| + 210µs | |
| コード長 | 186 bytes |
| 記録 | |
| コンパイル時間 | 619 ms |
| コンパイル使用メモリ | 14,976 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2026-10-05 03:33:13 |
| 合計ジャッジ時間 | 2,484 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 16 |
ソースコード
S = input()
r = 1
if len(S) == 1 and S == 0 or S == "":
print(r)
else:
for s in S:
if s == 'L':
r *= 2
else:
r = r * 2 + 1
print(r)