Given a sequence of integers S = fS1; S2; : : : ; Sng, you should determine what is the value of the
maximum positive product involving consecutive terms of S. If you cannot nd a positive sequence,
you should consider 0 as the value of the maximum product.
Input
Each test case starts with 1 N 18, the number of elements in a sequence. Each element Si is
an integer such that
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文:http://blog.csdn.net/a1967919189/article/details/47089951