結果

問題 No.115 遠足のおやつ
ユーザー roiti46roiti46
提出日時 2015-05-30 01:35:31
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 179 bytes
コンパイル時間 360 ms
コンパイル使用メモリ 6,492 KB
実行使用メモリ 6,048 KB
最終ジャッジ日時 2023-09-20 17:28:28
合計ジャッジ時間 2,292 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,860 KB
testcase_01 AC 11 ms
5,816 KB
testcase_02 WA -
testcase_03 AC 12 ms
5,868 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 11 ms
5,956 KB
testcase_07 WA -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 AC 11 ms
5,904 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 11 ms
5,956 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 RE -
testcase_22 WA -
testcase_23 AC 12 ms
5,824 KB
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 AC 11 ms
5,864 KB
testcase_40 AC 11 ms
5,784 KB
testcase_41 AC 12 ms
5,980 KB
testcase_42 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,D,K=map(int,raw_input().split())
s=range(1,K)+[D-K*(K-1)/2]
for i in range(2,K+1):
    while s[-i]<=N-i+s[-1]>0:s[-i]+=1;s[-1]-=1
print [-1," ".join(map(str,s))][s[-2]<s[-1]<=N]
0