solutions to all the problems on spoj i have solved