結果
| 問題 | No.115 遠足のおやつ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-10-12 23:42:18 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 195 bytes |
| 記録 | |
| コンパイル時間 | 133 ms |
| コンパイル使用メモリ | 77,464 KB |
| 最終ジャッジ日時 | 2025-12-03 22:01:24 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 TLE * 1 -- * 24 |
ソースコード
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