結果
問題 |
No.478 一般門松列列
|
ユーザー |
|
提出日時 | 2022-01-30 11:45:47 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 239 bytes |
コンパイル時間 | 178 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 68,768 KB |
最終ジャッジ日時 | 2024-06-11 08:10:37 |
合計ジャッジ時間 | 5,981 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 25 |
ソースコード
N,K = map(int,input().split()) if K == N-2: print(*[1]*(N)) exit() ls = [1,3,2] for i in range(N-K-3): if ls[-2] > ls[-1]: ls.append(ls[-1]+2) else: ls.append(ls[-1]+1) ls += [ls[-1]]*(N-len(ls)) print(*ls)