UVa 929 accepted - with lots of optimization to fit the time limit
Merge branch 'master' of https://github.com/cshung/Competition