03 2024 档案
摘要:Count Valid Paths in a Tree There is an undirected tree with n nodes labeled from 1 to n. You are given the integer n and a 2D integer array edges of
阅读全文
摘要:F - Earn to Advance Problem Statement There is a grid with rows and columns. Let denote the square at the -th row from the top and
阅读全文
摘要:D. Exam in MAC The Master's Assistance Center has announced an entrance exam, which consists of the following. The candidate is given a set of siz
阅读全文
摘要:C. Messenger in MAC In the new messenger for the students of the Master's Assistance Center, Keftemerum, an update is planned, in which developers wan
阅读全文
摘要:圆 题目描述 给出一个圆,圆上等距分布 个点,编号为 。 另有 条线段,第 条线段的端点为 和 ,权重为 。 定义一个圆是优良的,当且仅当所有线段无交(端点重合也算相交)。 如上图,线段 与线段
阅读全文
摘要:G - Compress Strings Problem Statement You are given strings . Find the minimum length of a string that contains all these
阅读全文
摘要:D. Pinball There is a one-dimensional grid of length . The -th cell of the grid contains a character , which is either '<' or '>'. When a p
阅读全文