srm570, srm571, tco

srm570 div1 medium was updated
srm571 div1 medium was solved