Works for sample input, but results in wrong answer when submitted
Merge branch 'master' of github.com:Archos67/UGAICPC