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 |
这道题太弱了(见内)用p1,p2,p3,三个指针维护三种票价的最优点,复杂度O(N)。 然而数据太弱,O(N^2)的算法都能水过。 其次答案应该是longlong类型,但是试了int也过了,还是数据太水。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator