my solution to SGU online judge (ACM practice website),http://acm.sgu.ru/