✔ Subsets of OsAshutosh is a very mischievous student. His mathematics teacher wants to teach him a lesson so, he gave Ashutosh an array of positive integers Ar[a1, a2...., and where ai>0. prímesum is an integer which isequal to sum of all the prime factors of each element in Arr, modulus (10^6). Ashutosh's job is to find no of ways in which a set of primeSum' number of Os can be divided into k subsets modulus(10^9+7).Ashutosh is a little nervous, can you help him get out of this trouble ?Note: A subset can be emptyINPUT:The first line indicates the number of subsets, kThe next line has a single integer n denoting the length of array.Next n lines contain the integers in the array.Input Format for custom testing:2 -> number of subsets, k3 --> length of the array3 --> length of the array for hackerrank representation of integer array followed by elements of the array1OUTPUT:An integer representing the number of ways in which a set of primeSum number of Os can be divided into k subsets mod (10^9+7).Constraints:O<al<=10^61 cun<=10451 <=k<=100
Answers
Answered by
0
Answer:
s→ab∣ba∣a∣b
a→aaa∣aab∣baa∣bab∣a
Explanation:
i hope its help you mark as brainlist plz
Answered by
0
Answer:
above is the answer. hope it helps
Similar questions