結果

問題 No.392 2分木をたどれ
ユーザー 👑 rin204rin204
提出日時 2022-01-20 03:10:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 86,812 KB
実行使用メモリ 77,572 KB
最終ジャッジ日時 2023-08-15 08:21:59
合計ジャッジ時間 1,284 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,516 KB
testcase_01 AC 117 ms
77,504 KB
testcase_02 AC 116 ms
77,572 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