随笔分类 -  Codeforces

摘要:B. Raspberries You are given an array of integers $a_1, a_2, \ldots, a_n$ and a number $k$ ($2 \leq k \leq 5$). In one operation, you can do the follo 阅读全文
posted @ 2023-10-23 19:34 onlyblues 阅读(24) 评论(0) 推荐(0)
摘要:C. Medium Design The array $a_1, a_2, \ldots, a_m$ is initially filled with zeroes. You are given $n$ pairwise distinct segments $1 \le l_i \le r_i \l 阅读全文
posted @ 2023-10-23 17:28 onlyblues 阅读(185) 评论(0) 推荐(0)
摘要:D. Professor Higashikata Josuke is tired of his peaceful life in Morioh. Following in his nephew Jotaro's footsteps, he decides to study hard and beco 阅读全文
posted @ 2023-10-18 14:55 onlyblues 阅读(32) 评论(0) 推荐(0)
摘要:D. Monocarp and the Set Monocarp has $n$ numbers $1, 2, \dots, n$ and a set (initially empty). He adds his numbers to this set $n$ times in some order 阅读全文
posted @ 2023-10-17 16:48 onlyblues 阅读(69) 评论(0) 推荐(0)
摘要:G. Anya and the Mysterious String Anya received a string $s$ of length $n$ brought from Rome. The string $s$ consists of lowercase Latin letters and a 阅读全文
posted @ 2023-10-14 14:51 onlyblues 阅读(120) 评论(0) 推荐(2)
摘要:C. Decreasing String Recall that string $a$ is lexicographically smaller than string $b$ if $a$ is a prefix of $b$ (and $a \ne b$), or there exists an 阅读全文
posted @ 2023-10-13 23:07 onlyblues 阅读(72) 评论(0) 推荐(0)
摘要:G. ABBC or BACB You are given a string $s$ made up of characters $\texttt{A}$ and $\texttt{B}$. Initially you have no coins. You can perform two types 阅读全文
posted @ 2023-10-12 14:32 onlyblues 阅读(96) 评论(0) 推荐(0)
摘要:C. Card Game There are $n$ cards stacked in a deck. Initially, $a_{i}$ is written on the $i$-th card from the top. The value written on a card does no 阅读全文
posted @ 2023-10-10 17:01 onlyblues 阅读(70) 评论(0) 推荐(0)
摘要:D. Sum of XOR Functions You are given an array $a$ of length $n$ consisting of non-negative integers. You have to calculate the value of $\sum_{l=1}^{ 阅读全文
posted @ 2023-10-09 14:52 onlyblues 阅读(94) 评论(0) 推荐(0)
摘要:D. Effects of Anti Pimples Chaneka has an array $[a_1,a_2,\ldots,a_n]$. Initially, all elements are white. Chaneka will choose one or more different i 阅读全文
posted @ 2023-10-09 11:38 onlyblues 阅读(34) 评论(0) 推荐(0)
摘要:D. Prefix Purchase You have an array $a$ of size $n$, initially filled with zeros ($a_1 = a_2 = \ldots = a_n = 0$). You also have an array of integers 阅读全文
posted @ 2023-10-07 15:06 onlyblues 阅读(48) 评论(0) 推荐(0)
摘要:D1. Candy Party (Easy Version) This is the easy version of the problem. The only difference is that in this version everyone must give candies to exac 阅读全文
posted @ 2023-09-14 10:17 onlyblues 阅读(70) 评论(0) 推荐(0)
摘要:F. Selling a Menagerie You are the owner of a menagerie consisting of $n$ animals numbered from $1$ to $n$. However, maintaining the menagerie is quit 阅读全文
posted @ 2023-09-08 15:51 onlyblues 阅读(83) 评论(0) 推荐(1)
摘要:D. Balanced String You are given a binary string $s$ (a binary string is a string consisting of characters 0 and/or 1). Let's call a binary string bal 阅读全文
posted @ 2023-09-05 21:22 onlyblues 阅读(113) 评论(5) 推荐(0)
摘要:F1. Omsk Metro (simple version) This is the simple version of the problem. The only difference between the simple and hard versions is that in this ve 阅读全文
posted @ 2023-09-04 21:41 onlyblues 阅读(51) 评论(0) 推荐(0)
摘要:D. Sorting By Multiplication You are given an array $a$ of length $n$, consisting of positive integers. You can perform the following operation on thi 阅读全文
posted @ 2023-09-02 16:07 onlyblues 阅读(107) 评论(0) 推荐(1)
摘要:C. Vika and Price Tags Vika came to her favorite cosmetics store "Golden Pear". She noticed that the prices of $n$ items have changed since her last v 阅读全文
posted @ 2023-09-02 14:45 onlyblues 阅读(47) 评论(0) 推荐(0)
摘要:D. Imbalanced Arrays Ntarsis has come up with an array $a$ of $n$ non-negative integers. Call an array $b$ of $n$ integers imbalanced if it satisfies 阅读全文
posted @ 2023-09-01 17:31 onlyblues 阅读(38) 评论(0) 推荐(0)
摘要:C. MEX Repetition You are given an array $a_1,a_2,\ldots, a_n$ of pairwise distinct integers from $0$ to $n$. Consider the following operation: consec 阅读全文
posted @ 2023-08-31 14:43 onlyblues 阅读(39) 评论(0) 推荐(0)
摘要:B. Split Sort You are given a permutation$^{\dagger}$ $p_1, p_2, \ldots, p_n$ of integers $1$ to $n$. You can change the current permutation by applyi 阅读全文
posted @ 2023-08-31 12:14 onlyblues 阅读(75) 评论(0) 推荐(0)

Web Analytics