codeforcesround#280(div.2)c.vanyaandexams(贪心)