結果

問題 No.392 2分木をたどれ
ユーザー rin204rin204
提出日時 2022-01-20 03:10:18
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 213 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 276 ms
使用メモリ 84,788 KB
最終ジャッジ日時 2022-12-28 13:35:35
合計ジャッジ時間 1,768 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 86 ms
75,528 KB
testcase_01 AC 201 ms
84,604 KB
testcase_02 AC 213 ms
84,788 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    a = int(input())
    a += 1
    ans = []
    while a != 1:
        if a % 2 == 0:
            ans.append("L")
        else:
            ans.append("R")
        a //= 2
    print(*ans[::-1], sep="")
0