結果
| 問題 | No.688 E869120 and Constructing Array 2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-07 21:20:51 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 338 bytes |
| 記録 | |
| コンパイル時間 | 355 ms |
| コンパイル使用メモリ | 20,664 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-05-30 19:06:59 |
| 合計ジャッジ時間 | 3,294 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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()