Question: You are given three integers N , M and K . An array is said to be good if there is exactly K indices i
You are given three integers and
An array is said to be good if there is exactly
indices i such that is equal to
Find the number of good arrays Since the answer
can be very large, return it modulo
Input Format
The first line contains an integer, N denoting one of
the given three integers.
The next line contains an integer, denoting one of
the three given integers.
The next line contains an integer, K denoting one the
three given integers.
Constraints
min
Sample Test Cases
Case input output
case input
output
case input
output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
