随笔分类 - Codeforces
摘要:D. Eating There are slimes on a line, the -th of which has weight . Slime is able to eat another slime if ; afterwar
阅读全文
摘要:H. Bro Thinks He's Him Skibidus thinks he's Him! He proved it by solving this difficult task. Can you also prove yourself? Given a binary string$^{\te
阅读全文
摘要:E. Triangle Tree You are given a rooted tree containing vertices rooted at vertex . A pair of vertices is called a good pa
阅读全文
摘要:H. Hard Demon Problem Swing is opening a pancake factory! A good pancake factory must be good at flattening things, so Swing is going to test his new
阅读全文
摘要:G. Natlan Exploring You are exploring the stunning region of Natlan! This region consists of cities, and each city is rated with an attractiveness
阅读全文
摘要:G. Sakurako and Chefir Given a tree with vertices rooted at vertex . While walking through it with her cat Chefir, Sakurako got distracted, and
阅读全文
摘要:E. Card Game In the most popular card game in Berland, a deck of cards is used. Each card has two parameters: suit and rank. Suits in the
阅读全文
摘要:E. Expected Power You are given an array of integers . You are also given an array . Let denote the
阅读全文
摘要:C2. Adjust The Presentation (Hard Version) This is the hard version of the problem. In the two versions, the constraints on and the time limit are
阅读全文
摘要:G2. Yunli's Subarray Queries (hard version) This is the hard version of the problem. In this version, it is guaranteed that for all que
阅读全文
摘要:H. Sakurako's Test Sakurako will soon take a test. The test can be described as an array of integers and a task on it: Given an integer , Sakur
阅读全文
摘要:D2. Turtle and a MEX Problem (Hard Version) The two versions are different problems. In this version of the problem, you can't choose the same integer
阅读全文
摘要:E. Not a Nim Problem Two players, Alice and Bob, are playing a game. They have piles of stones, with the -th pile initially containing st
阅读全文
摘要:H. Ksyusha and the Loaded Set Ksyusha decided to start a game development company. To stand out among competitors and achieve success, she decided to
阅读全文
摘要:D. Med-imize Given two positive integers and , and another array of integers. In one operation, you can select any subarray of size
阅读全文
摘要:E. Level Up Monocarp is playing a computer game. He starts the game being level . He is about to fight monsters, in order from to . The
阅读全文
摘要:G. Penacony On Penacony, The Land of the Dreams, there exists houses and roads. There exists a road between house and for all $1 \le
阅读全文
摘要:E. Wooden Game You are given a forest of rooted trees. Lumberjack Timofey wants to cut down the entire forest by applying the followi
阅读全文
摘要:D. The Omnipotent Monster Killer You, the monster killer, want to kill a group of monsters. The monsters are on a tree with vertices. On vertex wi
阅读全文