07 2023 档案
摘要:# [NOI2011] 阿狸的打字机 ## 题目描述 阿狸喜欢收藏各种稀奇古怪的东西,最近他淘到一台老式的打字机。打字机上只有 个按键,分别印有 个小写英文字母和 `B`、`P` 两个字母。经阿狸研究发现,这个打字机是这样工作的: * 输入小写字母,打字机的一个凹槽中会加入这个字
阅读全文
摘要:人的一生不仅要靠自我奋斗,还要考虑到历史的行程。 历史的行程可以抽象成一个 01 串,作为一个年纪比较大的人,你希望从历史的行程中获得一些姿势。 你发现在历史的不同时刻,不断的有相同的事情发生。比如,有两个人同时在世纪之交 年的时候上台,同样喜欢与洋人谈笑风生,同样提出了以「三」字开头的理论
阅读全文
摘要:# XOR Partition ## 题目描述 For a set of integers , let's define its cost as the minimum value of among all pairs of different intege
阅读全文
摘要:## 题目描述 猎人杀是一款风靡一时的游戏“狼人杀”的民间版本,他的规则是这样的: 一开始有 个猎人,第 个猎人有仇恨度 ,每个猎人只有一个固定的技能:死亡后必须开一枪,且被射中的人也会死亡。 然而向谁开枪也是有讲究的,假设当前还活着的猎人有 $[i_1\ldots i_
阅读全文
摘要:Problem StatementYou are given a set of strings consisting of 0 and 1, and an integer . Find the longest string that is a subsequence of or
阅读全文
摘要:# Optimal Insertion ## 题面翻译 ### 题目大意 给定两个序列 ,长度分别为 。接下来将 中的所有元素以**任意方式**插入序列 中**任意位置**,请找出一种插入方式使结果序列中的逆序对数量最小化,
阅读全文
摘要:## 题目描述 You are given a tree with nodes labelled . The -th edge connects nodes and and has an unknown posi
阅读全文
摘要:Problem StatementWe have a sequence of positive integers of length , , and a positive integer . For this sequ
阅读全文
摘要:Problem StatementThere is an grid, where the square at the -th row from the top and -th column from the left has a non-negative int
阅读全文
摘要:# [省选联考 2023] 填数游戏 ## 题目描述 众所周知,Alice 和 Bob 是一对好朋友。今天,他们约好一起玩游戏。 一开始,他们各自有一张空白的纸条。接下来,他们会在纸条上依次写 个 范围内的正整数。等 Alice 写完,Bob **在看到 Alice 写的纸条
阅读全文
摘要:Problem StatementThere are Takahashi. The -th Takahashi has an integer and balls. An integer between and , inclusive, wi
阅读全文
摘要:# X-OR ## 题面翻译 ### 题目描述 本题是**交互题**。 有一个固定的长度为 的排列 ,其值域为 ,你可以进行不超过 次询问,之后你需要输出这个排列 。 ### 输入格式 第一行有一个正整数 ,表示排列的长度。 保证 $3\le
阅读全文