結果
問題 |
No.688 E869120 and Constructing Array 2
|
ユーザー |
|
提出日時 | 2022-07-07 21:20:51 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 338 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-12-25 02:00:00 |
合計ジャッジ時間 | 1,410 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 1 |
ソースコード
k = int(input()) for i in range(2, 31): ANS = [1 for _ in range(i)] cnt = i * (i - 1) // 2 if cnt == k: print(len(ANS)) print(*ANS) exit() for j in range(1, 31 - i): ANS.append(0) cnt *= 2 if cnt == k: print(len(ANS)) print(*ANS) exit()