結果

問題 No.392 2分木をたどれ
ユーザー ああいいああいい
提出日時 2021-12-06 21:05:19
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
TLE  
実行時間 -
コード長 268 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 10,556 KB
実行使用メモリ 101,100 KB
最終ジャッジ日時 2023-09-21 15:46:07
合計ジャッジ時間 6,622 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

m = int(input())

for _ in range(m):
    A = int(input())
    root = []
    while A:
        parent = (A-1)//2
        if parent * 2 + 1 == A:
            root.append('L')
        else:
            root.append('R')
        a = parent
    print(''.join(reversed(root)))
0