首页 > 其他 > 详细

uva11059(最大乘积)

时间:2015-07-27 21:01:57      阅读:214      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!