Some solved problems from uva.onlinejudge.org