結果
| 問題 |
No.688 E869120 and Constructing Array 2
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2023-01-13 08:57:56 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 332 bytes |
| コンパイル時間 | 299 ms |
| コンパイル使用メモリ | 82,048 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2024-12-24 03:17:58 |
| 合計ジャッジ時間 | 3,332 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 10 |
ソースコード
K = int(input())
two = [1] * 31
for i in range(1, 31):
two[i] = two[i - 1] * 2
ans = []
for i in range(2, 31):
q, r = divmod(K, (i * (i - 1)//2))
if r:
continue
if q not in two:
continue
ind = two.index(q)
if ind + i > 30:
continue
ans = [0] * ind + [1] * i
break
print(*ans)
rlangevin