CF131C.The World is a Theatre
普及/提高-
通过率:0%
时间限制:2.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
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.
有 n 名男生和 m 名女生参加一个戏剧社。为了排演话剧《生活大爆炸》,他们需要从中选出恰好 t 名演员组成一个演出组,且该组中至少包含 4 名男生和至少 1 名女生。问:一共有多少种不同的选法?当然,仅在成员构成上不同的方案被视为不同的方案。
所有计算均需使用 64 位整数类型:C/C++ 中为 long long,Delphi 中为 int64,Java 中为 long。
输入格式
The only line of the input data contains three integers n, m, t (4 ≤ n ≤ 30, 1 ≤ m ≤ 30, 5 ≤ t ≤ n + m).
输入数据仅有一行,包含三个整数 n、m、t(4 ≤ n ≤ 30,1 ≤ m ≤ 30,5 ≤ t ≤ n + m)。
输出格式
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.
求满足条件的方案数。
在 C++ 中,请勿使用 %lld 格式说明符读取或写入 64 位整数。推荐使用 cin、cout 流,或 %I64d 格式说明符。
输入输出样例
输入#1
5 2 5
输出#1
10
输入#2
4 3 5
输出#2
3
输入解题思路,AI测评打分。不知道怎么写?