結果

問題 No.104 国道
ユーザー mokrai
提出日時 2017-11-01 23:18:34
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 241 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,496 KB
最終ジャッジ日時 2024-11-22 14:47:55
合計ジャッジ時間 1,555 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 RE * 1
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    S = input()
    binary = S.replace('L', '0').replace('R', '1')
    ordinary = int(binary, 2)
    #print(ordinary)

    start = 2 ** len(S)
    #print(start)

    print(start + ordinary)

if __name__ == '__main__':
    main()
0