結果

問題 No.104 国道
ユーザー GrayCoderGrayCoder
提出日時 2017-08-20 13:32:03
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
MLE  
実行時間 -
コード長 259 bytes
コンパイル時間 109 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 820,864 KB
最終ジャッジ日時 2024-04-22 18:13:07
合計ジャッジ時間 5,597 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
10,496 KB
testcase_01 AC 33 ms
10,496 KB
testcase_02 AC 36 ms
10,880 KB
testcase_03 AC 37 ms
10,496 KB
testcase_04 AC 34 ms
10,496 KB
testcase_05 AC 32 ms
10,624 KB
testcase_06 AC 34 ms
10,496 KB
testcase_07 AC 34 ms
10,624 KB
testcase_08 AC 34 ms
10,496 KB
testcase_09 AC 34 ms
10,496 KB
testcase_10 AC 33 ms
10,624 KB
testcase_11 AC 38 ms
10,624 KB
testcase_12 AC 34 ms
10,880 KB
testcase_13 AC 46 ms
16,256 KB
testcase_14 AC 126 ms
55,936 KB
testcase_15 MLE -
testcase_16 MLE -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    S = input()

    i = len(S)
    road = [j for j in range(2 ** i, (2 ** i) * 2)]
    for s in S:
        i = len(road) // 2
        if s == 'L':
            road = road[0:i]
        else:
            road = road[i:]

    print(road[0])

main()
0