結果

問題 No.115 遠足のおやつ
コンテスト
ユーザー nebukuro09
提出日時 2016-10-12 23:42:18
言語 PyPy2
(7.3.15)
結果
TLE  
実行時間 -
コード長 195 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 133 ms
コンパイル使用メモリ 77,464 KB
最終ジャッジ日時 2025-12-03 22:01:24
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 TLE * 1 -- * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

from itertools import combinations
n, d, k = map(int, raw_input().split())
for c in combinations(range(1, n+1), k):
    if sum(c) == d:
        print ' '.join(map(str, c))
        exit()
print -1
0