my solutions for problems at www.spoj.com