ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1196. History Exam

Show all messages Hide all messages

> I used algorithm with O(m log n) and got AC. But of course, when
you search, sometime you can see that it 's not necessary to
continue. Ex : if student's year < teacher's first year -> ignor this
year.
hashing is another idea ,but , but ... (-) MadPsyentist/Sam 7 Mar 2002 14:38
>
My algorhitm is O(m). But it is not work :)

Edited by author 29.11.2006 16:19

Edited by author 29.11.2006 16:19
Re: Is it possible to get faster than O(m log n) time? Alias (Alexander Prudaev) 18 Feb 2007 12:47
yes,  use hash