Re: Hm...
Contrary, some boring memory optimizations became needless.
Memory optimization is part of solution which is as
important as time optimization.
And more - program which uses less memory runs faster.
And in this case:
about 1171, 1219, 1250 (and even 1276) I agree with you
but:
in 1172 (IMHO) solution in O(N^3*Len) of memory is much
easier than others and, of course, it shouldn't pass.
in 1240 the main idea of right solution is not to use
one of parametrs of DP. And if ML is big dull DP passes
all tests. It's wrong!
And what about 1148?
Solution which fits in 4MB I've written in 5 minutes.
In other problems...
You are just right. The main idea is to solve it :)
Edited by author 15.05.2006 18:21