got correct answers for sample input but not for all cases
Merge branch 'master' of github.com:Archos67/UGAICPC