結果

問題 No.688 E869120 and Constructing Array 2
ユーザー H20H20
提出日時 2021-08-31 13:07:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 247 ms
コンパイル使用メモリ 82,104 KB
実行使用メモリ 53,896 KB
最終ジャッジ日時 2024-11-25 07:36:33
合計ジャッジ時間 2,664 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 34 ms
52,280 KB
testcase_01 AC 34 ms
52,452 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 34 ms
52,616 KB
testcase_05 WA -
testcase_06 AC 35 ms
53,828 KB
testcase_07 WA -
testcase_08 AC 34 ms
52,576 KB
testcase_09 WA -
testcase_10 AC 34 ms
52,088 KB
testcase_11 AC 34 ms
52,524 KB
testcase_12 AC 33 ms
52,288 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

K = int(input())
for i in range(2,31):
    for j in range(30-i):
        if K == i*(i-1)//2*pow(2,j):
            print(i+j) 
            print(*([1]*i+[0]*j))
            exit()
0