結果
| 問題 |
No.392 2分木をたどれ
|
| コンテスト | |
| ユーザー |
330Xs
|
| 提出日時 | 2022-01-30 16:07:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 69 ms / 2,000 ms |
| コード長 | 271 bytes |
| コンパイル時間 | 147 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 69,504 KB |
| 最終ジャッジ日時 | 2024-06-11 08:18:53 |
| 合計ジャッジ時間 | 778 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 3 |
ソースコード
m = int(input())
for _ in range(m):
c = int(input())
ans = []
while(c >= 1):
if(c % 2 == 0):
ans.append('R')
c = c // 2 - 1
else:
ans.append('L')
c //= 2
ans.reverse()
print(''.join(ans))
330Xs