結果

問題 No.392 2分木をたどれ
ユーザー rocoderrocoder
提出日時 2017-08-02 16:25:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 262 bytes
コンパイル時間 1,332 ms
コンパイル使用メモリ 10,648 KB
実行使用メモリ 8,300 KB
最終ジャッジ日時 2023-08-01 14:13:22
合計ジャッジ時間 627 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,816 KB
testcase_01 AC 40 ms
8,236 KB
testcase_02 AC 39 ms
8,300 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m=int(input ())
A=[int(input()) for i in range(m)]
#print (A)
for i in range (m):
    a=A[i]
    p=""
    while a>0:
    #    print (a)
        if a%2==0:
            p="R"+p
        else:
            p="L"+p
        a+=1
        a//=2
        a-=1
    print (p)
0