2019-08-14から1日間の記事一覧

CF 579 Div. 3 F Complete the Projects

Problem - F2 - CodeforcesI wonder why my solutions passes. My solution is quite different from the official solution. We assume that the optimal solution forms like this. In the following figure, elements are sorted in descending order acc…