Some of my algorithms for http://pl.spoj.com/