SPOJ solved problem by using Go language