12 2022 档案
摘要:Problem StatementWe have a grid with rows and columns. Each square is painted either white or black. For each integer pair such that
阅读全文
摘要:Problem StatementWe have a rooted tree with vertices numbered . The tree is rooted at Vertex , and the parent of Vertex
阅读全文
摘要:Problem StatementIn a string fair, they determine the beauty of a non-empty string consisting of lowercase English letters. The beauty of string $
阅读全文
摘要:Problem StatementYou are given an integer sequence of length . Find the number, modulo , of permutations $P = (P
阅读全文
摘要:Problem StatementYou are given a tree with vertices. The vertices are numbered , and the -th () edge connects
阅读全文
摘要:题目描述 The position of the leftmost maximum on the segment of array is the smallest integer such that $
阅读全文
摘要:题目描述 You are given three integers , , and . Your task is to find any integer which satisfies all of the following conditions,
阅读全文
摘要:Problem StatementA teacher has a hidden permutation of . You are going to determine it. To do this, you prepa
阅读全文
摘要:Problem StatementTakahashi is trying to catch many Snuke. There are some pits in a two-dimensional coordinate plane, connected to Snuke's nest. Now, $
阅读全文
摘要:Problem StatementYou are given integers , , , and . How many strings consisting of R, G, and B satisfy all of the conditions below? Fi
阅读全文
摘要:Ehab's REAL Number Theory Problem 题目描述 You are given an array of length that has a special condition: every element in this array has at m
阅读全文
摘要:# [NOIP2022] 建造军营 ## 题目描述 A 国与 B 国正在激烈交战中,A 国打算在自己的国土上建造一些军营。 A 国的国土由 座城市组成, 条双向道路连接这些城市,使得**任意两座城市均可通过道路直接或间接到达**。A 国打算选择一座或多座城市(**至少一座**),并在这
阅读全文
摘要:The game is played by Alice and Bob. Initially, there are stones. The players alternate turns, making a move described below, with Alice going fir
阅读全文
摘要:Problem StatementConstruct a set of integers satisfying all of the conditions below. It can be proved that at least one such set exists under
阅读全文
摘要:div class="part"> Problem StatementYou are given a sequence of non-negative integers . Let us perform the following operation on $
阅读全文
摘要:Problem StatementYou are given positive integers and . Find the number, modulo , of simple connected undirected graphs with vertices num
阅读全文
摘要:Problem StatementThere are towns numbered and roads numbered . Road connects towns and . When you use
阅读全文
摘要:Problem Statement A hexagonal cell is represented as with two integers and . Cell is adjacent to the following six cells: $(i-1
阅读全文