結果

問題 No.392 2分木をたどれ
ユーザー mlihua09mlihua09
提出日時 2020-09-04 01:26:38
言語 PyPy3
(7.3.8)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 691 ms
使用メモリ 81,772 KB
最終ジャッジ日時 2022-12-29 08:19:04
合計ジャッジ時間 1,723 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 73 ms
75,428 KB
testcase_01 AC 117 ms
81,720 KB
testcase_02 AC 112 ms
81,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #



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