Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Re:只考虑相邻的??显然数据太水了,随便加上一组数据就能rj掉一堆人In Reply To:只考虑相邻的??显然数据太水了,随便加上一组数据就能rj掉一堆人 Posted by:Snow_storm at 2010-10-27 13:51:28 > 比如 > 3 5 > 1 100 > 16 100 > 20 100 > > 显然答案是1800 而不是2700 > > 当然程序写出来可以是O(n),每次更新上一周的价格就OK。 大神,这两种结果都能AC的,我试过,无语…… Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator