Nì thủ dam. 10 lines on monitor for class 2. Codeforces 833b the bakery editorial divide and conquer optimization distinct values. Codeforces another permutation problem editorial maximum cost formula.