09 2022 档案
摘要:Problem StatementThere is a rectangle in the -plane. Each edge of this rectangle is parallel to the - or -axis, and its area is not zero. Gi
阅读全文
摘要:section> Problem StatementFrom the point in a two-dimensional plane, let us move the distance of toward the point . Find our coord
阅读全文
摘要:Problem StatementThere are items in a shop. For each , the price of the -th item is yen (the currency of Japan). Tak
阅读全文
摘要:Problem StatementGiven an integer , find the smallest integer that satisfies all of the conditions below. is greater than or equal to .
阅读全文
摘要:Problem StatementWe have an chessboard. Let denote the square at the -th row from the top and -th column from the left of
阅读全文
摘要:Problem StatementWe have a typewriter with rows. The keys in the -th row from the top can type the characters in a string . Let us use thi
阅读全文
摘要:Problem StatementThere is a rooted tree with vertices, Vertex being the root. For each , the -th edge connects Verte
阅读全文
摘要:Problem StatementYou are given a string of length consisting of 0, 1, and ?. You are also given queries $(x_1, c_1), (x_2, c_2), \ldots, (
阅读全文
摘要:Problem StatementYou are given a sequence of length . Each element is , , or . Process queries in order. Each que
阅读全文
摘要:Problem StatementIn an -dimensional space, the Manhattan distance between two points and $y = (y_1, y_2, \dots,
阅读全文
摘要:Problem StatementTakahashi is at the origin of a two-dimensional plane. Takahashi will repeat teleporting times. In each teleportation, he makes o
阅读全文
摘要:Problem StatementThere is a sequence of length . Determine if there exists a tuple of integers that satisfies
阅读全文
摘要:Problem StatementWe have a grid with horizontal rows and vertical columns. denotes the square at the -th row from the top and -
阅读全文
摘要:Problem StatementTakahashi is exploring a cave in a video game. The cave consists of rooms arranged in a row. The rooms are numbered Room $1,2,\ld
阅读全文
摘要:Problem StatementA fruit store sells apples. You may perform the following operations as many times as you want in any order: Buy one apple for ye
阅读全文
摘要:Problem StatementYou are given an integer sequence of length : . You will perform the following consecutive operations just
阅读全文
摘要:NotesFor two integer sequences of the same length and , is said to be lexicographically earlier than if
阅读全文
摘要:Problem StatementThere are people, called Person , Person , , Person . The parent of Person is Person
阅读全文
摘要:Problem StatementWe have five cards with integers , , , , and written on them, one on each card. This set of five cards is called a Fu
阅读全文
摘要:Problem StatementThere are squares called Square though Square . You start on Square . Each of the squares from Square through Squar
阅读全文
摘要:Problem StatementThere are integers with different values written on a blackboard. The -th value is and is written times. You may r
阅读全文
摘要:Problem Statement people, numbered to , will participate in a rock-paper-scissors tournament. The tournament proceeds as follows: The pa
阅读全文
摘要:Problem StatementA sport event is held in June of every year whose remainder when divided by is . Suppose that it is now January of the year $Y
阅读全文
摘要:Problem StatementThere is an empty sequence and an empty stack . Also, you are given an integer sequence of length . Fo
阅读全文
摘要:Problem StatementYou are given a simple undirected graph with vertices and edges. The vertices are numbered , and the -th $(1
阅读全文
摘要:Problem StatementYou are given a sequence of length consisting of integers between and . Find the number of pairs o
阅读全文
摘要:Problem StatementYou are given a sequence of positive integers of length . There are ways to choose one or more term
阅读全文
摘要:Problem StatementYou are given a simple undirected graph with vertices and edges. The vertices are numbered , and the -th $(1
阅读全文
摘要:Problem StatementYou are given a sequence that contains exactly once each. You may perform the following ope
阅读全文
摘要:Problem StatementWe have a number line. Takahashi painted some parts of this line, as follows: First, he painted the part from to red.
阅读全文
摘要:Problem Statement players played a round-robin tournament. You are given an -by- table containing the results of the matches. Let $A_{i,j
阅读全文
摘要:Problem StatementFor two strings and , let denote the concatenation of and in this order. You are given strings $S_1,\ldots,S
阅读全文
摘要:Problem StatementThere are balls arranged from left to right. The color of the -th ball from the left is Color , and an integer is w
阅读全文
摘要:Problem StatementTakahashi will toss a coin times. He also has a counter, which initially shows . Depending on the result of the -th coin to
阅读全文
摘要:Problem Statement We have a variable and kinds of operations that change the value of . Operation is represented as a pair of integers
阅读全文
摘要:Problem Statement We have a directed graph with vertices and edges. Edge is directed from Vertex to .and has a weight of .
阅读全文
摘要:Problem Statement You are given two strings and consisting of lowercase English letters. Takahashi starts with the string . He can perform
阅读全文