結果

問題 No.392 2分木をたどれ
ユーザー convexineqconvexineq
提出日時 2020-12-06 22:49:02
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 132 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 265 ms
使用メモリ 82,292 KB
最終ジャッジ日時 2023-03-02 19:32:03
合計ジャッジ時間 1,416 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 84 ms
75,772 KB
testcase_01 AC 132 ms
82,016 KB
testcase_02 AC 128 ms
82,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    r = []
    c = int(input())
    while c:
        r.append("L" if c%2 else "R")
        c = (c-1)//2
    print("".join(r[::-1]))
0