update for algorithm competition srm 568