結果

問題 No.688 E869120 and Constructing Array 2
ユーザー akitsugu777akitsugu777
提出日時 2019-07-16 15:52:13
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 211 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,540 KB
実行使用メモリ 7,976 KB
最終ジャッジ日時 2023-08-20 18:26:25
合計ジャッジ時間 2,684 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 12 ms
7,796 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 14 ms
7,796 KB
testcase_11 WA -
testcase_12 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

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