結果

問題 No.392 2分木をたどれ
ユーザー mlihua09mlihua09
提出日時 2020-09-04 01:26:38
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 218 bytes
コンパイル時間 312 ms
コンパイル使用メモリ 87,248 KB
実行使用メモリ 77,472 KB
最終ジャッジ日時 2023-08-16 00:56:49
合計ジャッジ時間 1,375 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
71,216 KB
testcase_01 AC 89 ms
77,308 KB
testcase_02 AC 89 ms
77,472 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