結果
| 問題 |
No.392 2分木をたどれ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-06 21:05:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 268 bytes |
| コンパイル時間 | 87 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 121,580 KB |
| 最終ジャッジ日時 | 2024-07-07 09:31:33 |
| 合計ジャッジ時間 | 6,474 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 2 |
ソースコード
m = int(input())
for _ in range(m):
A = int(input())
root = []
while A:
parent = (A-1)//2
if parent * 2 + 1 == A:
root.append('L')
else:
root.append('R')
a = parent
print(''.join(reversed(root)))