Thanks for contributing! I don't think you can do better than though. People on the UVa leaderboards usually optimize for I/O! Larry 17:46, 24 March 2010 (UTC)
- Thanks for the encouragement! It seems yes, no one has done better than on the boards; after small modifications to code (without optimizing I/O), I was able to get a rank!
- I don't try anymore for the speed, mostly because people are very passionate about it! ;) Larry 18:55, 24 March 2010 (UTC)