結果

問題 No.688 E869120 and Constructing Array 2
ユーザー toyuzuko
提出日時 2020-07-07 16:10:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 255 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-10-01 09:18:02
合計ジャッジ時間 1,344 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 9 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

K = int(input())
for i in range(0, 31):
    for j in range(0, 31):
        if i + j > 30:
            continue
        if 2**i * j * (j - 1) // 2 == K:
            break
    else:
        continue
    break
res = [0] * i + [1] * j
print(i + j)
print(*res)
0