AtCoder Beginner Contest 180
F
Unbranched
AtCoder
⌀ 2419
原题
← E→
翻译中…

Problem Statement

翻译中…

Find the number of graphs with $N$ labeled vertices and $M$ unlabeled edges, not necessarily simple or connected, that satisfy the following conditions, modulo $(10^9+7)$:

翻译中…
  • There is no self-loop;
  • The degree of every vertex is at most $2$;
  • The maximum of the sizes of the connected components is exactly $L$.
翻译中…

Constraints

翻译中…
  • $2 \leq N \leq 300$
  • $1\leq M \leq N$
  • $1 \leq L \leq N$
  • All values in input are integers.
翻译中…

Input

翻译中…

Input is given from Standard Input in the following format:

翻译中…

N M L

翻译中…

Output

翻译中…

Print the answer.

翻译中…

样例

Input #1
3 2 3
Output #1
3
When the vertices are labeled $1$ through $N$, the following three graphs satisfy the condition: - The graph with edges $1-2$ and $2-3$; - The graph with edges $1-2$ and $1-3$; - The graph with edges $1-3$ and $2-3$.
Input #2
4 3 2
Output #2
6
Input #3
300 290 140
Output #3
211917445
题目信息
题号
abc180_f
时间限制
2 s
内存限制
1024 MB

题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。