結果

問題 No.392 2分木をたどれ
ユーザー brthyyjp
提出日時 2021-08-05 17:38:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 82,352 KB
実行使用メモリ 70,144 KB
最終ジャッジ日時 2024-09-16 15:21:36
合計ジャッジ時間 1,023 ms
ジャッジサーバーID
(参考情報)
judge6 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

m = int(input())
for i in range(m):
    a = int(input())
    C = []
    while a:
        if a&1:
            C.append('L')
            a = (a-1)//2
        else:
            C.append('R')
            a = (a-2)//2
    C.reverse()
    print(''.join(C))
0