結果
| 問題 |
No.566 だいたい完全二分木
|
| コンテスト | |
| ユーザー |
convexineq
|
| 提出日時 | 2021-03-11 17:51:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 74 ms / 2,000 ms |
| コード長 | 172 bytes |
| コンパイル時間 | 258 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 75,776 KB |
| 最終ジャッジ日時 | 2024-10-13 05:47:31 |
| 合計ジャッジ時間 | 1,270 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
def f(x):
c = bin(x)[2:]
c = "0"*(k-len(c)) + c
return int(c[::-1],2)
k = int(input())
ans = [2**k-1] + [f(i) for i in range(1,2**k)]
ans.pop()
print(*ans)
convexineq