Solutions to some of the problems on spoj