Merge pull request #6 from ping128/master

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