码迷,mamicode.com
首页 > 其他好文 > 详细

uva11059(最大乘积)

时间:2015-07-27 21:03:46      阅读:112      评论:0      收藏:0      [点我收藏+]

标签:

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

版权声明:本文为博主原创文章,未经博主允许不得转载。

uva11059(最大乘积)

标签:

原文地址:http://blog.csdn.net/a1967919189/article/details/47089951

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!