結果

問題 No.104 国道
ユーザー pypypymipypypymi
提出日時 2022-02-16 11:33:20
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 80 ms / 5,000 ms
コード長 120 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 86,920 KB
実行使用メモリ 71,488 KB
最終ジャッジ日時 2023-09-11 17:08:28
合計ジャッジ時間 2,802 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 73 ms
71,216 KB
testcase_01 AC 75 ms
71,380 KB
testcase_02 AC 80 ms
71,104 KB
testcase_03 AC 78 ms
71,216 KB
testcase_04 AC 72 ms
71,172 KB
testcase_05 AC 73 ms
71,076 KB
testcase_06 AC 75 ms
71,068 KB
testcase_07 AC 73 ms
71,352 KB
testcase_08 AC 72 ms
71,248 KB
testcase_09 AC 71 ms
71,220 KB
testcase_10 AC 73 ms
71,236 KB
testcase_11 AC 71 ms
71,272 KB
testcase_12 AC 71 ms
71,196 KB
testcase_13 AC 72 ms
71,488 KB
testcase_14 AC 73 ms
71,384 KB
testcase_15 AC 73 ms
71,120 KB
testcase_16 AC 73 ms
71,092 KB
testcase_17 AC 73 ms
71,132 KB
testcase_18 AC 73 ms
71,128 KB
testcase_19 AC 72 ms
71,100 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()

start = 1
for si in s:
    if si=="L":
        start=start*2
    else:
        start=start*2+1
print(start)
0