結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 17 ms
7,884 KB
testcase_01 AC 17 ms
7,896 KB
testcase_02 AC 16 ms
7,980 KB
testcase_03 WA -
testcase_04 AC 17 ms
7,972 KB
testcase_05 AC 16 ms
7,904 KB
testcase_06 AC 16 ms
8,060 KB
testcase_07 AC 16 ms
7,884 KB
testcase_08 AC 16 ms
7,884 KB
testcase_09 RE -
testcase_10 AC 16 ms
7,900 KB
testcase_11 AC 16 ms
7,984 KB
testcase_12 AC 16 ms
7,984 KB
権限があれば一括ダウンロードができます

ソースコード

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