結果

問題 No.688 E869120 and Constructing Array 2
ユーザー posaune-0xa0
提出日時 2018-06-24 01:28:17
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 67 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-07 14:19:18
合計ジャッジ時間 2,470 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

K = int(input())
if K == 0:
    print('0')
else:
    for t in range(1, 31):
        tri = t*(t+1)//2
        if K%tri == 0 and bin(K//tri).count('1') == 1:
            print("1 "*(t+1) + "0 "*(bin(K//tri).count('0') - 1))
            break
0