CF131C.The World is a Theatre

普及/提高-

通过率:0%

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

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 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.

输入格式

The only line of the input data contains three integers nn , mm , tt ( 4<=n<=30,1<=m<=30,5<=t<=n+m4<=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.

输入输出样例

  • 输入#1

    5 2 5
    

    输出#1

    10
    
  • 输入#2

    4 3 5
    

    输出#2

    3
    
首页