摘要: It is easy to see that for every fraction in the form(k> 0), we can always find two positive integersxandy,x≥y, such that:.Now our question is: can yo... 阅读全文
posted @ 2014-08-27 16:06 lvyahui 阅读(344) 评论(0) 推荐(0) 编辑
摘要: Problem D - Maximum ProductTime Limit: 1 secondGiven a sequence of integers S = {S1, S2, ..., Sn}, you should determine what is the value of the maxim... 阅读全文
posted @ 2014-08-27 15:13 lvyahui 阅读(612) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.cnblogs.com/xiaobaibuhei/p/3301110.html算法学到很弱,连这么简单个问题都难到我了。但我偏不信这个邪,终于做出来了。不过,是参照别人的,是 xiaobaibuhei 到博客让我找到到感觉,不过我只看了一遍他到代码,后面都是自己写的,虽... 阅读全文
posted @ 2014-08-27 12:23 lvyahui 阅读(482) 评论(0) 推荐(0) 编辑