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 |
有啊....同超时..............难道SET的UPPER_BOUND是O(N)的??In Reply To:这题有用Set做出来的吗??我一直超时…… Posted by:byron at 2006-12-09 14:00:36 刚才测试了一下,貌似UPPER_BOUND是从小到大枚举测试的.... 我把1至20000放进set<int>里 然后在里面循环14000000次找1,700MS 循环14000000找20000,居然要10几秒...... >_< Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator