上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 63 下一页
摘要: G2. Light Bulbs (Hard Version) The easy and hard versions of this problem differ only in the constraints on $n$. In the hard version, the sum of value 阅读全文
posted @ 2023-12-24 21:30 onlyblues 阅读(149) 评论(0) 推荐(0)
摘要: E. Physical Education Lessons This year Alex has finished school, and now he is a first-year student of Berland State University. For him it was a tot 阅读全文
posted @ 2023-12-22 17:02 onlyblues 阅读(21) 评论(0) 推荐(0)
摘要: D. Array Collapse You are given an array $[p_1, p_2, \dots, p_n]$, where all elements are distinct. You can perform several (possibly zero) operations 阅读全文
posted @ 2023-12-19 20:20 onlyblues 阅读(162) 评论(0) 推荐(0)
摘要: D. Cyclic MEX For an array $a$, define its cost as $\sum_{i=1}^{n} \operatorname{mex} ^\dagger ([a_1,a_2,\ldots,a_i])$. You are given a permutation$^\ 阅读全文
posted @ 2023-12-18 19:58 onlyblues 阅读(132) 评论(0) 推荐(2)
摘要: C - Not So Consecutive Problem Statement You are given an integer $N$. An integer sequence $x=(x_1,x_2,\cdots,x_N)$ of length $N$ is called a good seq 阅读全文
posted @ 2023-12-14 16:50 onlyblues 阅读(41) 评论(0) 推荐(0)
摘要: F - Random Update Query Problem Statement You are given an integer sequence $A = (A_1, A_2, \ldots, A_N)$ of length $N$. We will perform the following 阅读全文
posted @ 2023-12-12 14:47 onlyblues 阅读(111) 评论(0) 推荐(0)
摘要: E - Lucky bag Problem Statement AtCoder Inc. sells merchandise on its online shop. There are $N$ items remaining in the company. The weight of the $i$ 阅读全文
posted @ 2023-12-11 17:30 onlyblues 阅读(157) 评论(0) 推荐(1)
摘要: [HNOI2009] 梦幻布丁 题目描述 $n$ 个布丁摆成一行,进行 $m$ 次操作。每次将某个颜色的布丁全部变成另一种颜色的,然后再询问当前一共有多少段颜色。 例如,颜色分别为 $1,2,2,1$ 的四个布丁一共有 $3$ 段颜色. 输入格式 第一行是两个整数,分别表示布丁个数 $n$ 和操作次 阅读全文
posted @ 2023-12-09 18:03 onlyblues 阅读(127) 评论(0) 推荐(0)
摘要: G. Lights In the end of the day, Anna needs to turn off the lights in the office. There are $n$ lights and $n$ light switches, but their operation sch 阅读全文
posted @ 2023-12-08 15:37 onlyblues 阅读(95) 评论(0) 推荐(1)
摘要: E. Good Triples Given a non-negative integer number $n$ ($n \ge 0$). Let's say a triple of non-negative integers $(a, b, c)$ is good if $a + b + c = n 阅读全文
posted @ 2023-12-07 18:49 onlyblues 阅读(128) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 63 下一页
Web Analytics