結果

問題 No.392 2分木をたどれ
ユーザー 👑 yumechiyumechi
提出日時 2016-09-09 00:32:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 310 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 81,780 KB
実行使用メモリ 69,540 KB
最終ジャッジ日時 2024-04-27 18:21:07
合計ジャッジ時間 1,101 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    for _ in range(int(input())):
        i = int(input())
        res = ""
        while i > 0:
            if i % 2 == 0:
                i -= 1
                res += "R"
            else:
                res += "L"
            i >>= 1
        print(res)


if __name__=="__main__":
    solve()
0