P3648-[APIO2014]序列分割 题目: 题目描述: 你正在玩一个关于长度为 $n$ 的非负整数序列的游戏。这个游戏中你需要把序列分成 $k + 1$ 个非空
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 题目: 题目描述: 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 题目: 题目描述: 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
P3287-[SCOI2014]方伯伯的玉米田 题目: 题目描述: 方伯伯在自己的农田边散步,他突然发现田里的一排玉米非常的不美。这排玉米一共有 N
P5665-划分 题目: 题目描述: 2048 年,第三十届 CSP 认证的考场上,作为选手的小明打开了第一题。这个题的样例有 $n$ 组数据,数据从 $1 \sim n$ 编号,$i$ 号