report VI VI EN
Register | Login
  • HOME
  • PROBLEMSET
  • ROADMAP
  • COMPETITION
  • TOPIC
  • RANKING
  • GUIDE
  • MASHUP
  • ABOUT
  • CONTACT
  • Problem
  • Submit
  • Results
Fork and knife - FlandreOJ: Flandre Online Judge

Fork and knife

Time limit: 1000 ms
Memory limit: 256 MB
There $a$ knives and $b$ forks. How many way of choosing $n$ pairs of knife and fork? ### Input - A single line contains 3 integers $a, b, n$. ### Output - Print the number of ways modulo $10^9+7$. ### Constraints - $1 \le n \le a, b \le 10^3$. ### Example Input: ``` 9 6 4 ``` Output: ``` 1890 ```
Introduction to combinatorics
Binomial coefficient
Fork and knife
Binomial coefficient 2
Equation
Array rearrangement
Value of subsequences
Inequation
Growing mushrooms
Binary matrix
Broken board
Triangles counting
Minecraft graph
Restricted path
Heavenly Peach Garden
Topic
Combinatorics
Rating 1100
Solution (0) Solution