Codeforces Beta Round 95 (Div. 2)
C
The World is a Theatre
Codeforces
1400
原题
← BD →
翻译中…

There are $*n*$ boys and $*m*$ girls attending a theatre club. To set a play "The Big Bang Theory", they need to choose a group containing exactly $*t*$ actors containing no less than 4 boys and no less than one girl. How many ways are there to choose a group? Of course, the variants that only differ in the composition of the troupe are considered different.

翻译中…

Perform all calculations in the 64-bit type: long long for С/С++, int64 for Delphi and long for Java.

翻译中…

Input

翻译中…

The only line of the input data contains three integers $*n*$, $*m*$, $*t*$ ($4 ≤ *n* ≤ 30, 1 ≤ *m* ≤ 30, 5 ≤ *t* ≤ *n* + *m*$).

翻译中…

Output

翻译中…

Find the required number of ways.

翻译中…

Please do not use the %lld specificator to read or write 64-bit integers in С++. It is preferred to use cin, cout streams or the %I64d specificator.

翻译中…

样例

Input #1
5 2 5
Output #1
10
InputCopy OutputCopy
Input #2
4 3 5
Output #2
3
InputCopy OutputCopy
题目信息
题号
131C
时间限制
2 s
内存限制
256 MB
标签
组合数学
数学

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