|
|
вернуться в форумОбщий форумWho can help to write the code (1102),I always get 'Time limited' Послано qwt 25 мар 2002 18:10 Re: Who can help to write the code (1102),I always get 'Time limited' in case you use string matching + dynamic programming. it's O(nm) , even m is only 6, the over head is too big for this 2 sec time limit. so use an automaton instead. |
|
|