Solutions to problems on http://uva.onlinejudge.org