spoj and uva random problems added