|  | 
|  | 
| вернуться в форум | 0.79sec AC.My algo is O((m+n)lgm).But why it is so slow?hm... Послано Dilyan  9 май 2005 05:28for n = 10000 and m = 100000 you get approximately 2.10^6. the only way to get 0.79 is if the constant is big enough.mine is O(m + n) and I get 0.079
Re: hm... my algo O(m+n) too, 0.046 sRe: hm... O(m+n^2) algo gets AC with 0.046 :D | 
 | 
|