04 2023 档案
摘要:Problem StatementYou are given positive integers and . Find the number, modulo , of integer sequences $\bigl(f(0), f(1), \ldots, f(2
阅读全文
摘要:[省选联考 2023] 人员调度 题目背景 滥用本题评测将封号。 题目描述 众所周知,一个公司的 个部门可以组织成一个树形结构。形式化地,假设这些部门依次编号为 ,那么除了 号部门以外,第 个部门有且仅有一个上级部门 $p_i
阅读全文
摘要:[省选联考 2023] 过河卒 题目背景 棋盘上有一个过河卒,需要走到底线。卒行走的规则是可以向左移动一格,向右移动一格或者向前移动一格。同时在棋盘上有两个另一方的棋子,需要拦截这个卒走到底线。这两个棋子的走法和帅一致,可以走到前后左右四个方向上相邻的格子。因此本题可以称为“帅拦过河卒”。 题目描述
阅读全文
摘要:Problem StatementYou are given a string consisting of lowercase English letters. Print the number of non-empty strings that satisfy the follow
阅读全文