My solutions to SPOJ.com problems