Solves to acmp.ru problems