|
|
вернуться в форумHow to get AC with 0.02 s (mine is 0.7 s)??(-) Thanks :) Re: How to get AC with 0.02 s (mine is 0.7 s)??(-) Послано zrp 21 дек 2008 07:01 maybe you need to DP Re: How to get AC with 0.02 s (mine is 0.7 s)??(-) I used bitwise operations (we can represent each subset as number between 1 and 2^n - 1), this AC'ed with 0.031s, may be you can further improve it .. Re: How to get AC with 0.02 s (mine is 0.7 s)??(-) Well, I used DP on subsets, but can't get faster than 0.093. Is there any special trick? Re: How to get AC with 0.02 s (mine is 0.7 s)??(-) I used bitmask... AC on 0.015 Re: How to get AC with 0.02 s (mine is 0.7 s)??(-) probably they just upgraded the machine from 2011, that's why you are faster than others :P Re: How to get AC with 0.02 s (mine is 0.7 s)??(-) I get 0.015 and used queue for each recount |
|
|