結果

問題 No.688 E869120 and Constructing Array 2
コンテスト
ユーザー akitsugu777
提出日時 2019-07-16 15:52:13
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
WA  
実行時間 -
コード長 211 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 58 ms
コンパイル使用メモリ 14,848 KB
実行使用メモリ 11,008 KB
最終ジャッジ日時 2026-10-02 22:05:40
合計ジャッジ時間 2,642 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 1 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

k = int(input())

l = []
for i in range(31):
    for j in range(31):
        if (i-1)*i/2 * 2**j == k:
            l.append([i, j])

l2 = list('0' * l[0][0] + '1' * l[0][1])

print(sum(l[0]))
print(' '.join(l2))
0