Problems from uva.onlinejudge.org