Yes it was that one
I didn't notice the latter was different.
I tried that solution with an extended time limit and it gave an AC in 72 seconds (it didn't need extending memory limit now). I think we can't extend time limit so much (it's 20s now), probably some brute force programs in C would start to get AC..
The PC all programs are ran on now is Pentium 166 MMX, by the way.
Yes, but it's not such a big problem as time limits; few problems become much easier given enough memory.. Right now, memory limits shown in problem's description are always increased by a ~40MB to allow all interpreters (especially java) to run. Later, probably a special flag for problems will be introduced, saying the memory limit is playing a key role and is not extended and it is solvable only in a few chosen languages.