09 2023 档案
摘要:题目描述 You're going to generate an array with a length of at most , where each equals either or . You generate this a
阅读全文
摘要:题目描述 Steve Rogers is fascinated with new vibranium shields S.H.I.E.L.D gave him. They're all uncolored. There are shields in total, the -t
阅读全文
摘要:Problem StatementSnuke runs a bakery. He is planning for the next days. Let us call these days Day . At the moment, the bakery hires
阅读全文
摘要:Problem StatementYou are given an integer sequence of length : . Let us perform operations in order. The -th operation is d
阅读全文
摘要:This is a harder version of the problem. In this version, .Marek is working hard on creating strong test cases to his new algorithmic probl
阅读全文
摘要:Problem StatementThere is a tree with vertices numbered to . The -th edge connects vertices and . Let us keep performing the
阅读全文
摘要:Problem StatementWe have a grid with rows and columns. We denote by the cell in the -th row from the top and -th column from the
阅读全文
摘要:题目描述 A wireless sensor network consists of autonomous sensors scattered in an environment where they monitor conditions such as temperature, sound, an
阅读全文
摘要:题目描述 This is the hard version of this problem. The only difference is the limit of - the length of the input string. In this version, $ 1 \leq n
阅读全文
摘要:Recently George is preparing for the Graduate Record Examinations (GRE for short). Obviously the most important thing is reciting the words. Now Georg
阅读全文
摘要:Now Coach Pang is preparing for the Graduate Record Examinations as George did in 2011. At each day, Coach Pang can: "+": learn a word "?\(
阅读全文
摘要:Since you are a good friend of Jaber and Eyad, they are asking for your help to solve this problem. You are given a graph consisting of nodes, w
阅读全文
摘要:Problem StatementSnuke got positive integers from his mother, as a birthday present. There may be duplicate elements. He will circle som
阅读全文
摘要:## 题目描述 C 国是一个繁荣昌盛的国家,它由 座城市和 条有向道路组成,城市从 到 编号。如果从 号城市出发,经过若干条道路后能到达 号城市,那么我们称 号城市可到达 号城市,记作 。C 国的道路有一
阅读全文
摘要:## 题目描述 Sam changed his school and on the first biology lesson he got a very interesting task about genes. You are given arrays, the -th o
阅读全文
摘要:## 题目描述 On a permutation of length , we define a bully swap as follows: - Let be the index of the largest element such that
阅读全文
摘要:## 题目描述 You are given an array of length weights of masses , ... . No two weights have the same mass. You can put
阅读全文
摘要:## 题目描述 You are given a tree with nodes. For each node, you either color it in or . The value of a path is equal to the ME
阅读全文
摘要:## 题目描述 Michael and Brian are stuck in a hotel with rooms, numbered from to , and need to find each other. But this hotel's doors ar
阅读全文
摘要:## 题目描述 You have a set of distinct integers between and . Each second you do the following steps: 1. Pick an element in
阅读全文
摘要:Problem StatementThere is a grid with rows and columns. The square at the -th row from the top and the -th column from the left contains
阅读全文
摘要:Problem StatementYou are given a simple connected undirected graph with vertices and edges. The vertices and edges of are numbered as
阅读全文