結果

問題 No.104 国道
ユーザー ABKZABKZ
提出日時 2021-06-23 23:00:17
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 146 bytes
コンパイル時間 1,102 ms
コンパイル使用メモリ 86,740 KB
実行使用メモリ 831,712 KB
最終ジャッジ日時 2023-09-07 04:53:16
合計ジャッジ時間 7,256 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 99 ms
72,428 KB
testcase_01 AC 99 ms
72,280 KB
testcase_02 AC 101 ms
72,272 KB
testcase_03 AC 100 ms
72,200 KB
testcase_04 AC 107 ms
72,412 KB
testcase_05 AC 102 ms
72,332 KB
testcase_06 AC 103 ms
72,280 KB
testcase_07 AC 102 ms
72,320 KB
testcase_08 AC 103 ms
72,288 KB
testcase_09 AC 105 ms
72,404 KB
testcase_10 AC 103 ms
72,328 KB
testcase_11 AC 105 ms
72,340 KB
testcase_12 AC 104 ms
72,412 KB
testcase_13 AC 106 ms
75,832 KB
testcase_14 AC 121 ms
105,124 KB
testcase_15 AC 591 ms
401,108 KB
testcase_16 MLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

from functools import reduce

S = input()

print(2**len(S) + reduce(lambda a, b: [0]*len(a)+a if b=="R" else a+[0]*len(a), S[::-1], [1]).index(1))
0