algorithm running time

join shbcf.ru