上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 64 下一页
摘要: E. Triangle Tree You are given a rooted tree$^{\text{∗}}$ containing $n$ vertices rooted at vertex $1$. A pair of vertices $(u,v)$ is called a good pa 阅读全文
posted @ 2025-01-28 18:42 onlyblues 阅读(74) 评论(0) 推荐(0)
摘要: D. Game With Triangles There are $n+m$ distinct points $(a_1,0), (a_2,0), \ldots, (a_{n},0), (b_1,2), (b_2,2), \ldots, (b_{m},2)$ on the plane. Initia 阅读全文
posted @ 2025-01-27 23:19 onlyblues 阅读(156) 评论(0) 推荐(0)
摘要: 一起看很美的日落! 题目描述 牛可乐有一棵由 $n$ 个结点构成的树,第 $i$ 个节点的权值为 $a_i$。 我们定义一个连通块 $\mathbb{V}$ 的权值为: 当前连通块中两两结点的权值异或和,即 $\sum\limits_{i,j \in \mathbb{V}}{a_i \oplus a 阅读全文
posted @ 2025-01-25 12:49 onlyblues 阅读(32) 评论(0) 推荐(0)
摘要: 那是我们的影子 题目描述 由 $3 \times n$ 个单元格构成的 $3$ 行 $n$ 列异形数独规则如下: 每一个单元格都需要填入 $1$ 到 $9$ 之间的整数; 任意一个 $3 \times 3$ 的子矩阵中都不包含重复的数字; 现在,牛可乐已经填入了一些数字,请你在此基础上帮助他计算,这 阅读全文
posted @ 2025-01-24 21:43 onlyblues 阅读(43) 评论(0) 推荐(0)
摘要: H. Hard Demon Problem Swing is opening a pancake factory! A good pancake factory must be good at flattening things, so Swing is going to test his new 阅读全文
posted @ 2024-12-19 09:31 onlyblues 阅读(39) 评论(0) 推荐(0)
摘要: Minimum Operations to Make Character Frequencies Equal You are given a string s. A string t is called good if all characters of t occur the same numbe 阅读全文
posted @ 2024-12-16 22:50 onlyblues 阅读(61) 评论(0) 推荐(0)
摘要: F - Diversity Problem Statement There are $N$ products for sale in a store. The $i$-th product has a price of $P_i$ yen, a utility value of $U_i$, and 阅读全文
posted @ 2024-12-13 16:30 onlyblues 阅读(41) 评论(0) 推荐(0)
摘要: Maximum Area Rectangle With Point Constraints II There are n points on an infinite plane. You are given two integer arrays xCoord and yCoord where (xC 阅读全文
posted @ 2024-12-09 23:04 onlyblues 阅读(183) 评论(0) 推荐(0)
摘要: GLLF 砍木棍 题目描述 上回 GLLF 对一个木头砍了 $10^{100}$ 刀,他感觉有点累了,所以他决定砍一根木棍。 他有一根长度为正整数 $n$ 的木棍,把它砍成了若干个长度为正整数的小段,他很好奇有多少种砍法能使得这些小段木棍能拼成一个凸多边形。 两种砍法不同当且仅当存在砍的位置不同。我 阅读全文
posted @ 2024-12-05 15:50 onlyblues 阅读(58) 评论(0) 推荐(0)
摘要: 小红闯地下城 题目描述 已知地下城是树形结构,一共有 $n$ 个房间,$n−1$ 条双向通路。入口和出口都在 $1$ 号房间,每个房间有 $1$ 只怪物,小红进入房间后必须先击杀怪物。 每个房间有一个通往其他房间的单向传送阵。小红可以使用最多 $1$ 次传送。 当小红通过道路或者传送阵移动到其他房间 阅读全文
posted @ 2024-11-22 17:53 onlyblues 阅读(52) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 64 下一页
Web Analytics