CF915F-Imbalance Value of a Tree 题目: 题目描述: You are given a tree $ T $ consisting of $ n $ vertices. A number is written on each vertex; the number written on vertex $ i $ is $ a_{i} $ . Let’s denote the function $ I(x,y) $ as the difference between maximum and minimum value of $ a_{i} $ on a simple path
P5495-Dirichlet 前缀和 题目: 题目描述: 给定一个长度为 $n$ 的数列 $a_1,a_2,a_3,\dots,a_n$。 现在你要求出一个长度为 $n$ 的数列 $b_1,b_2
P4550-收集邮票 题目: 题目描述: 有n种不同的邮票,皮皮想收集所有种类的邮票。唯一的收集方法是到同学凡凡那里购买,每次只能买一张,并且买到
CF985F-Isomorphic Strings 题目: 题目描述: You are given a string $ s $ of length $ n $ consisting of lowercase English letters. For two given strings $ s $ and $ t $ , say $ S $ is the set of distinct characters of $ s $ and $ T $ is the set of distinct characters of $ t $ . The
P6246-[IOI2000] 邮局 加强版 题目: 题目描述: 高速公路旁边有 $n$ 个村庄。高速公路表示为整数轴,每个村庄的位置用单个整数坐标标识。两个位置之间的距离是其整数坐标差
P4767-[IOI2000]邮局 题目: 题目描述: 高速公路旁边有一些村庄。高速公路表示为整数轴,每个村庄的位置用单个整数坐标标识。没有两个在