結果
問題 |
No.115 遠足のおやつ
|
ユーザー |
|
提出日時 | 2016-10-12 23:42:18 |
言語 | Python2 (2.7.18) |
結果 |
TLE
|
実行時間 | - |
コード長 | 195 bytes |
コンパイル時間 | 85 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 12,800 KB |
最終ジャッジ日時 | 2024-11-22 02:01:07 |
合計ジャッジ時間 | 50,607 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 TLE * 8 |
ソースコード
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