Solutions to some algorithmic problems on pl.spoj.com, which I wrote back in the day.