随笔分类 - Codeforces
摘要:D. Neutral Tonality You are given an array consisting of integers, as well as an array consisting of integers. Let den
阅读全文
摘要:G. wxhtzdy ORO Tree After (finally) qualifying for the IOI 2023, wxhtzdy was very happy, so he decided to do what most competitive programmers do: try
阅读全文
摘要:E1. Doremy's Drying Plan (Easy Version) The only differences between the two versions of this problem are the constraint on , the time limit and th
阅读全文
摘要:D. XOR Construction You are given integers . Your task is to construct an array such that: ever
阅读全文
摘要:D. Counting Rhyme You are given an array of integers . A pair of integers , such that , is called go
阅读全文
摘要:D. Doremy's Connecting Plan Doremy lives in a country consisting of cities numbered from to , with people living in the -th city.
阅读全文
摘要:E. Segment Sum You are given two integers and (). Your task is to calculate the sum of numbers from to (including and
阅读全文
摘要:E. Time Travel Berland is a country with ancient history, where roads were built and destroyed for centuries. It is known that there always were c
阅读全文
摘要:D2. Dances (Hard Version) This is the hard version of the problem. The only difference is that in this version . You are given two arrays
阅读全文
摘要:B. Raspberries You are given an array of integers and a number (). In one operation, you can do the follo
阅读全文
摘要:C. Medium Design The array is initially filled with zeroes. You are given pairwise distinct segments $1 \le l_i \le r_i \l
阅读全文
摘要: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
阅读全文
摘要:D. Monocarp and the Set Monocarp has numbers and a set (initially empty). He adds his numbers to this set times in some order
阅读全文
摘要:G. Anya and the Mysterious String Anya received a string of length brought from Rome. The string consists of lowercase Latin letters and a
阅读全文
摘要:C. Decreasing String Recall that string is lexicographically smaller than string if is a prefix of (and ), or there exists an
阅读全文
摘要:G. ABBC or BACB You are given a string made up of characters and . Initially you have no coins. You can perform two types
阅读全文
摘要:C. Card Game There are cards stacked in a deck. Initially, is written on the -th card from the top. The value written on a card does no
阅读全文
摘要:D. Sum of XOR Functions You are given an array of length consisting of non-negative integers. You have to calculate the value of $\sum_{l=1}^{
阅读全文
摘要:D. Effects of Anti Pimples Chaneka has an array . Initially, all elements are white. Chaneka will choose one or more different i
阅读全文
摘要:D. Prefix Purchase You have an array of size , initially filled with zeros (). You also have an array of integers
阅读全文