結果
問題 | No.392 2分木をたどれ |
ユーザー |
|
提出日時 | 2020-07-16 08:35:53 |
言語 | Python3 (3.10.1 + numpy 1.22.3 + scipy 1.8.0) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 208 bytes |
コンパイル時間 | 67 ms |
使用メモリ | 8,076 KB |
最終ジャッジ日時 | 2022-12-29 00:44:14 |
合計ジャッジ時間 | 914 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
テストケース
テストケース表示入力 | 結果 | 実行時間 使用メモリ |
---|---|---|
testcase_00 | AC | 17 ms
7,908 KB |
testcase_01 | AC | 58 ms
8,076 KB |
testcase_02 | AC | 60 ms
7,968 KB |
ソースコード
from collections import deque M = int(input()) for _ in range(M): A = int(input()) C = deque() while A: C.appendleft('L' if A % 2 else 'R') A = (A - 1) // 2 print(*C, sep='')