懦弱大叔

文章
4
资源
0
加入时间
2年10月24天

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...