結果

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

ソースコード

diff #

import math
n=int(input())
a=30
n=int(n/2)
while True:
    if n%(a*(a-1))==0:
        break
    else:
        a-=1
n=n*2
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