spoj, top-coder & the like (in python, c++, c , c#)