結果
問題 | No.392 2分木をたどれ |
ユーザー |
![]() |
提出日時 | 2016-07-15 00:03:45 |
言語 | Python3 (3.11.2 + numpy 1.24.2 + scipy 1.10.1) |
結果 |
AC
|
実行時間 | 37 ms / 2,000 ms |
コード長 | 172 bytes |
コンパイル時間 | 98 ms |
コンパイル使用メモリ | 10,564 KB |
実行使用メモリ | 8,260 KB |
最終ジャッジ日時 | 2023-08-04 19:56:30 |
合計ジャッジ時間 | 657 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 15 ms
7,964 KB |
testcase_01 | AC | 37 ms
8,260 KB |
testcase_02 | AC | 36 ms
8,212 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])