Merge pull request #7 from ping128/master

Solutions to 2438 and 5738
Merge branch 'master' of https://github.com/depstein/programming-competitions