結果

問題 No.688 E869120 and Constructing Array 2
ユーザー 👑 H20H20
提出日時 2021-08-31 13:07:21
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 178 bytes
コンパイル時間 316 ms
コンパイル使用メモリ 87,176 KB
実行使用メモリ 71,648 KB
最終ジャッジ日時 2023-08-16 18:06:28
合計ジャッジ時間 3,685 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,248 KB
testcase_01 AC 74 ms
71,320 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 74 ms
71,240 KB
testcase_05 WA -
testcase_06 AC 73 ms
71,540 KB
testcase_07 WA -
testcase_08 AC 72 ms
71,440 KB
testcase_09 WA -
testcase_10 AC 72 ms
71,372 KB
testcase_11 AC 73 ms
71,436 KB
testcase_12 AC 70 ms
71,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