結果
| 問題 | No.392 2分木をたどれ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-12-11 14:26:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 2,000 ms |
| コード長 | 411 bytes |
| 記録 | |
| コンパイル時間 | 375 ms |
| コンパイル使用メモリ | 82,600 KB |
| 実行使用メモリ | 68,124 KB |
| 最終ジャッジ日時 | 2025-12-11 14:26:11 |
| 合計ジャッジ時間 | 1,378 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 |
ソースコード
import sys
from collections import defaultdict
from itertools import accumulate
def input(): return sys.stdin.readline().rstrip('\n')
def main():
a = ['']
for i in range(1, 4095):
a.append(a[(i - 1) // 2] + ('L' if i % 2 == 1 else 'R'))
for _ in range(int(input())):
print(a[int(input())])
if __name__ == '__main__':
ret = main()
if ret is not None:
print(ret)