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:有大神知道这题为什么用map会超时么??数组线性查找0ms过。区别就是注释那3行In Reply To:有大神知道这题为什么用map会超时么??数组线性查找0ms过。区别就是注释那3行 Posted by:illuminator at 2013-03-22 21:12:35 额,我想明白了,map插入时是lg(n),而数组是o(1),这题测试数据比较弱,所以数组战胜map Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator