10142 - Australian Voting : Problem on uva.onlinejudge.org