Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

Re:有大神知道这题为什么用map会超时么??数组线性查找0ms过。区别就是注释那3行

Posted by illuminator at 2013-03-22 22:50:54 on Problem 1496
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator