結果

問題 No.688 E869120 and Constructing Array 2
ユーザー るさるさ
提出日時 2018-05-31 22:03:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 262 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 8,124 KB
最終ジャッジ日時 2023-09-21 20:44:59
合計ジャッジ時間 1,649 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 WA -
testcase_02 AC 15 ms
7,988 KB
testcase_03 WA -
testcase_04 AC 15 ms
7,924 KB
testcase_05 AC 15 ms
7,956 KB
testcase_06 AC 16 ms
7,908 KB
testcase_07 RE -
testcase_08 AC 16 ms
7,992 KB
testcase_09 RE -
testcase_10 AC 16 ms
7,892 KB
testcase_11 AC 16 ms
7,944 KB
testcase_12 AC 15 ms
8,028 KB
権限があれば一括ダウンロードができます

ソースコード

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