Codeforces Round #464 (Div. 2) E. Maximize!
You are given a multiset S consisting of positive integers (initially empty). There are two kind of queries:Add a positive integer to S, the newly added integer is not less than any number in it.Find ...