結果

問題 No.392 2分木をたどれ
ユーザー 👑 rin204
提出日時 2022-01-20 03:10:18
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 92 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 287 ms
コンパイル使用メモリ 82,500 KB
実行使用メモリ 76,672 KB
最終ジャッジ日時 2024-11-23 14:14:32
合計ジャッジ時間 1,011 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

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