結果

問題 No.392 2分木をたどれ
ユーザー convexineqconvexineq
提出日時 2020-12-06 22:49:02
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 161 bytes
コンパイル時間 563 ms
コンパイル使用メモリ 81,648 KB
実行使用メモリ 70,640 KB
最終ジャッジ日時 2023-10-17 15:40:25
合計ジャッジ時間 977 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
53,332 KB
testcase_01 AC 72 ms
70,640 KB
testcase_02 AC 68 ms
70,636 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