08 2024 档案
摘要: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
阅读全文
摘要:大鱼吃小鱼 题目描述 现在小 w 正在玩一款经典游戏——大鱼吃小鱼。 游戏规则如下:玩家操控一条初始重量为 的鱼,它的目标是吃掉所有不超过自身当前重量的鱼。每当吃掉一条重量为 的鱼,那么自身重量也会立即增长 。 在游戏过程中,共会陆续出现 条鱼。其中第 条鱼重
阅读全文
摘要:BanG Dream! It's MyGO!!!!! 题目描述 在“BanG Dream! It's MyGO!!!”的世界里,各个乐团的演出和排练场地像星星一样被连接在一起,形成了一张美丽的网络图。每个乐团都有自己独特的演出场地和练习室,这些地点通过各种路径互相连接,组成了一张复杂的图谱。 koa
阅读全文
摘要:E - Permute K times Problem Statement You are given a sequence of length where each element is between and , inclusive, and a sequence
阅读全文
摘要: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
阅读全文
摘要:G - AtCoder Office Problem Statement people work at the AtCoder office. The office keeps records of entries and exits, and there have been ent
阅读全文
摘要:循环字符串 题目描述 给定长度为 的字符串,有 次操作,每次操作都是以下三种之一: 一:; 把 的每个位置的字符都替换为字母 ,保证字符串和 都是小写字母。二:; 询问子串 $s_l s_{l+1} \ldots s_
阅读全文
摘要:D. Med-imize Given two positive integers and , and another array of integers. In one operation, you can select any subarray of size
阅读全文