結果
| 問題 |
No.115 遠足のおやつ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-02-10 01:51:28 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 243 bytes |
| コンパイル時間 | 150 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2024-06-23 16:54:25 |
| 合計ジャッジ時間 | 1,565 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 38 WA * 2 |
ソースコード
N,D,K = map(int,raw_input().split())
s = range(1,K)+[D-sum(range(1,K))]
for i in range(1,K):
while s[-i-1] <= N-i-1 and s[-1] > N:
s[-i-1] += 1; s[-1] -= 1
print " ".join(map(str,s)) if max(s) <= N and len(s) == len(set(s)) else -1