题目描述: Polycarp analyzes the prices of the new berPhone. At his disposal are the prices for nn last days: a1,a2,…,ana1,a2,…,an, where aiai is the price of berPhone on the day ii. Polycarp considers the price on the day ii to be bad if later (that is, a day with a greater number) berPhone was sold at ...