https://www.gravatar.com/avatar/8f3abece0f8608ce4b9c1e3212fd1b72?s=240&d=mp

CF1392C-Omkar and Waterslide

CF1392C-Omkar and Waterslide 题目: 题目描述: Omkar is building a waterslide in his water park, and he needs your help to ensure that he does it as efficiently as possible. Omkar currently has $ n $ supports arranged in a line, the $ i $ -th of which has height $ a_i $ . Omkar wants to build his waterslide from the right to the

CF1392B-Omkar and Infinity Clock

CF1392B-Omkar and Infinity Clock 题目: 题目描述: Being stuck at home, Ray became extremely bored. To pass time, he asks Lord Omkar to use his time bending power: Infinity Clock! However, Lord Omkar will only listen to mortals who can solve the following problem: You are given an array $ a $ of $ n $ integers. You are also given an integer $ k

CF1392A-Omkar and Password

CF1392A-Omkar and Password 题目: 题目描述: Lord Omkar has permitted you to enter the Holy Church of Omkar! To test your worthiness, Omkar gives you a password which you must interpret! A password is an array $ a $ of $ n $ positive integers. You apply the following operation to the array: pick any two adjacent numbers that are not equal to each other