結果

問題 No.392 2分木をたどれ
ユーザー lloyzlloyz
提出日時 2023-01-28 00:21:15
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 216 bytes
コンパイル時間 81 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-28 09:03:47
合計ジャッジ時間 686 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

for _ in range(int(input())):
    a = int(input())
    ans = ''
    a += 1
    while a > 1:
        if a % 2 == 1:
            ans = 'R' + ans
        else:
            ans = 'L' + ans
        a //= 2
    print(ans)
0