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