B.The Number of Products
You are given a sequence a1,a2,…,an consisting of n non-zero integers (i.e. ai≠0).You have to calculate two following values:the number of pairs of indices (l,r) (l≤r) such that al⋅al+1…ar−1⋅ar is n...