結果
| 問題 |
No.478 一般門松列列
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-11-20 21:55:19 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 136 bytes |
| コンパイル時間 | 169 ms |
| コンパイル使用メモリ | 82,024 KB |
| 実行使用メモリ | 69,568 KB |
| 最終ジャッジ日時 | 2024-11-20 21:55:28 |
| 合計ジャッジ時間 | 7,471 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 30 |
ソースコード
n,k = map(int,input().split())
A = [0,1]
now = 1
for i in range(n-2):
if i < n - k - 2:
now ^= 1
A.append(now)
print(*A)
ntuda