結果

問題 No.392 2分木をたどれ
ユーザー htkbhtkb
提出日時 2018-05-28 23:03:04
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 319 bytes
コンパイル時間 77 ms
コンパイル使用メモリ 10,660 KB
実行使用メモリ 8,400 KB
最終ジャッジ日時 2023-09-12 20:16:16
合計ジャッジ時間 634 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

import sys
m = int(input())
for n in map(int, sys.stdin.readlines()):
    n += 1
    current = 0
    result = ""
    for i in range(100):
        if current == n:
            break
        if n & 2**i:
            result += "R"
            current += 2**i
        else:
            result += "L"

    print(result[:-1])
0