結果
問題 | No.392 2分木をたどれ |
ユーザー |
![]() |
提出日時 | 2016-07-15 00:03:45 |
言語 | Python3 (3.10.1 + numpy 1.22.3 + scipy 1.8.0) |
結果 |
AC
|
実行時間 | 43 ms / 2,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 411 ms |
使用メモリ | 8,124 KB |
最終ジャッジ日時 | 2022-12-08 20:46:21 |
合計ジャッジ時間 | 939 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 16 ms
7,488 KB |
testcase_01 | AC | 40 ms
7,876 KB |
testcase_02 | AC | 43 ms
8,124 KB |
ソースコード
m = int(input()) A = [int(input())for i in range(m)] for a in A: s = '' while a > 0: if (a & 1) == 0: s += 'R' else: s += 'L' a = (a - 1) // 2 print(s[::-1])