結果
| 問題 | No.689 E869120 and Constructing Array 3 |
| コンテスト | |
| ユーザー |
konsin_tokage
|
| 提出日時 | 2018-05-19 09:39:49 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 1,000 ms |
| コード長 | 218 bytes |
| 記録 | |
| コンパイル時間 | 454 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 15,488 KB |
| 最終ジャッジ日時 | 2026-03-17 10:18:13 |
| 合計ジャッジ時間 | 3,249 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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])
konsin_tokage