Codeforces Round 182 (Div. 1)
E
Yaroslav and Arrangements
Codeforces
2800
原题
← D→
翻译中…

Yaroslav calls an array of $*r*$ integers $*a*_{1}, *a*_{2}, ..., *a*_{*r*}$ good, if it meets the following conditions: $|*a*_{1} - *a*_{2}| = 1, |*a*_{2} - *a*_{3}| = 1, ..., |*a*_{*r* - 1} - *a*_{*r*}| = 1, |*a*_{*r*} - *a*_{1}| = 1$, at that image.

翻译中…

An array of integers $*b*_{1}, *b*_{2}, ..., *b*_{*r*}$ is called great, if it meets the following conditions:

翻译中…
  1. The elements in it do not decrease $(*b*_{*i*} ≤ *b*_{*i* + 1})$.
  2. If the inequalities $1 ≤ *r* ≤ *n*$ and $1 ≤ *b*_{*i*} ≤ *m*$ hold.
  3. If we can rearrange its elements and get at least one and at most $*k*$ distinct good arrays.
翻译中…

Yaroslav has three integers $*n*, *m*, *k*$. He needs to count the number of distinct great arrays. Help Yaroslav! As the answer may be rather large, print the remainder after dividing it by $1000000007$ $(10^{9} + 7)$.

翻译中…

Two arrays are considered distinct if there is a position in which they have distinct numbers.

翻译中…

Input

翻译中…

The single line contains three integers $*n*$, $*m*$, $*k*$ $(1 ≤ *n*, *m*, *k* ≤ 100)$.

翻译中…

Output

翻译中…

In a single line print the remainder after dividing the answer to the problem by number $1000000007$ $(10^{9} + 7)$.

翻译中…

样例

Input #1
1 1 1
Output #1
0
InputCopy OutputCopy
Input #2
3 3 3
Output #2
2
InputCopy OutputCopy
题目信息
题号
301E
时间限制
3 s
内存限制
256 MB
标签
动态规划

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