#P1560. The World is a Theatre

The World is a Theatre

题目描述

There are nn boys and mm girls attending a theatre club. To set a play "The Big Bang Theory", they need to choose a group containing exactly tt actors, with no less than 4 boys and no less than one girl. How many ways are there to choose such a group? Note that variants differing only in the composition of the troupe are considered different.

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

中文题意

nn个男孩和mm个女孩中挑选一个tt人小组,要求组内至少有11个女孩和44个男孩,求方案数。 数据范围:n,m30,tn+mn,m≤30,t≤n+m

输入

The only line of the input data contains three integers nn, mm, and tt (4n304 \leq n \leq 30, 1m301 \leq m \leq 30, 5tn+m5 \leq t \leq n + m).

输出

Find the required number of ways.

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

样例

5 2 5
10
4 3 5
3