結果

問題 No.688 E869120 and Constructing Array 2
ユーザー るさ
提出日時 2018-05-31 22:06:44
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2024-07-07 14:09:40
合計ジャッジ時間 1,218 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 1 RE * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
n=int(input())
a=30
while True:
    if n%(a*(a-1)/2)==0:
        break
    else:
        a-=1
n=int(n/(a*(a-1)/2))
b=int(math.log2(n))
put=""
for i in range(a):
    put+="1 "
for i in range(b):
    put+="0 "
print(a+b)
print(put[:-1])
0