Question: Implement in any language Standard input The first line of the input contains integer N The second line of the input contains N integers representing
Implement in any language


Standard input The first line of the input contains integer N The second line of the input contains N integers representing the {B1 , ,, BN} sequence, each integer is separated by one space. Standard output Print one integer representing the number of sequences with the given property. As this number can be very large, output its value modulo 109 7, Standard input The first line of the input contains integer N The second line of the input contains N integers representing the {B1 , ,, BN} sequence, each integer is separated by one space. Standard output Print one integer representing the number of sequences with the given property. As this number can be very large, output its value modulo 109 7
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
