結果
問題 | No.1619 Coccinellidae |
ユーザー |
![]() |
提出日時 | 2021-09-26 17:59:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 521 bytes |
コンパイル時間 | 180 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 86,656 KB |
最終ジャッジ日時 | 2024-07-05 15:40:32 |
合計ジャッジ時間 | 3,318 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 5 WA * 11 |
ソースコード
n, m, k = map(int, input().split())cur = 0A = []for i in range(n):if i == n-1:A.append(m)else:A.append(cur)m -= curcur += 1ans = [-1]*nj = 0for i, a in enumerate(A):if k != 0:if k >= n-i-1:ans[-1+i] = ak -= n-i-1else:ans[k] = aelse:while j < n:if ans[j] == -1:breakelse:j += 1ans[j] = aj += 1print(*ans, sep='\n')