結果
問題 | No.689 E869120 and Constructing Array 3 |
ユーザー |
![]() |
提出日時 | 2018-05-19 09:39:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 32 ms / 1,000 ms |
コード長 | 218 bytes |
コンパイル時間 | 130 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,624 KB |
最終ジャッジ日時 | 2024-06-28 14:20:04 |
合計ジャッジ時間 | 1,768 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 13 |
ソースコード
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 += [7,24] print(len(c)) print(*c[::-1])