結果

問題 No.104 国道
ユーザー jamadjamad
提出日時 2017-07-11 03:59:27
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 14 ms / 5,000 ms
コード長 91 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,584 KB
実行使用メモリ 7,932 KB
最終ジャッジ日時 2023-07-29 09:57:07
合計ジャッジ時間 1,416 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
7,772 KB
testcase_01 AC 13 ms
7,760 KB
testcase_02 AC 12 ms
7,752 KB
testcase_03 AC 13 ms
7,792 KB
testcase_04 AC 12 ms
7,768 KB
testcase_05 AC 13 ms
7,872 KB
testcase_06 AC 14 ms
7,824 KB
testcase_07 AC 13 ms
7,812 KB
testcase_08 AC 14 ms
7,932 KB
testcase_09 AC 12 ms
7,808 KB
testcase_10 AC 13 ms
7,816 KB
testcase_11 AC 12 ms
7,872 KB
testcase_12 AC 12 ms
7,820 KB
testcase_13 AC 12 ms
7,836 KB
testcase_14 AC 12 ms
7,884 KB
testcase_15 AC 12 ms
7,768 KB
testcase_16 AC 12 ms
7,820 KB
testcase_17 AC 13 ms
7,760 KB
testcase_18 AC 12 ms
7,864 KB
testcase_19 AC 13 ms
7,884 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=input()
#print(S)

ans=1
for x in S:
    if x=='L':ans*=2
    else:ans=ans*2+1
print(ans)
0