結果
問題 |
No.689 E869120 and Constructing Array 3
|
ユーザー |
![]() |
提出日時 | 2018-05-19 09:26:32 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 217 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-06-28 14:20:02 |
合計ジャッジ時間 | 3,040 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 5 WA * 8 |
ソースコード
k = int(input()) a = i = 0 while a+i <= k: a += i i += 1 k -= a c = [1]*i if k >= 2: c += [3,3] while k >= 2: c.append(8) k -= 2 if k == 1: c += [5,24] print(len(c)) print(*c[::-1])