結果

問題 No.392 2分木をたどれ
ユーザー htkbhtkb
提出日時 2018-05-28 23:10:31
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 32 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 130 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 8,256 KB
最終ジャッジ日時 2023-09-12 20:16:18
合計ジャッジ時間 590 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,832 KB
testcase_01 AC 32 ms
8,256 KB
testcase_02 AC 32 ms
8,208 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
m = int(input())
for n in map(int, sys.stdin.readlines()):
    n += 1
    result = ""
    while n > 1:
        result += "R" if n&1 else "L"
        n >>= 1

    print(result[::-1])
0