結果

問題 No.392 2分木をたどれ
ユーザー c-yanc-yan
提出日時 2021-01-14 02:37:17
言語 Python3
(3.10.1 + numpy 1.22.3 + scipy 1.8.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 62 ms
使用メモリ 8,244 KB
最終ジャッジ日時 2022-12-28 09:53:07
合計ジャッジ時間 890 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 16 ms
7,716 KB
testcase_01 AC 20 ms
8,244 KB
testcase_02 AC 21 ms
8,228 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

m, *A = map(int, open(0).read().split())


def f(a):
    return bin(a + 1)[3:].replace('0', 'L').replace('1', 'R')


for a in A:
    print(f(a))
0