I have tried 2 different (completely) different algorithms for the ACODE, problem.
I can't see what is wrong, any special cases in this problem ?
These are some tests I ran, same answer with diff algorithms.
(of course, they might both be wrong !, but I don't think so...)
How sensitive is the judge to NL/CR characters at the beginning or end of the solution ?