04 2025 档案

摘要:Path Existence Queries in a Graph II You are given an integer n representing the number of nodes in a graph, labeled from 0 to n - 1. You are also giv 阅读全文
posted @ 2025-04-30 13:30 onlyblues 阅读(43) 评论(0) 推荐(0)
摘要:Find X Value of Array II You are given an array of positive integers nums and a positive integer k. You are also given a 2D array queries, where queri 阅读全文
posted @ 2025-04-20 18:05 onlyblues 阅读(16) 评论(0) 推荐(0)
摘要:[IOI 2008] Island 题目描述 你准备浏览一个公园,该公园由 $N$ 个岛屿组成,当地管理部门从每个岛屿 $i$ 出发向另外一个岛屿建了一座长度为 $L_i$ 的桥,不过桥是可以双向行走的。同时,每对岛屿之间都有一艘专用的往来两岛之间的渡船。相对于乘船而言,你更喜欢步行。你希望经过的桥 阅读全文
posted @ 2025-04-16 21:45 onlyblues 阅读(18) 评论(0) 推荐(0)
摘要:Maximum Product of Subsequences With an Alternating Sum Equal to K You are given an integer array nums and two integers, k and limit. Your task is to 阅读全文
posted @ 2025-04-08 09:53 onlyblues 阅读(123) 评论(0) 推荐(0)
摘要:[GXOI/GZOI2019] 旅行者 题目描述 J 国有 $n$ 座城市,这些城市之间通过 $m$ 条单向道路相连,已知每条道路的长度。 一次,居住在 J 国的 Rainbow 邀请 Vani 来作客。不过,作为一名资深的旅行者,Vani 只对 J 国的 $k$ 座历史悠久、自然风景独特的城市感兴 阅读全文
posted @ 2025-04-05 22:28 onlyblues 阅读(15) 评论(0) 推荐(0)
摘要:晚饭吃什么? 题目描述 “晚饭吃什么?” “我都行。” notPP 罗列了 $m$ 个吃饭的地点,在接下来的 $n$ 天中,notPP 觉得一直吃外卖会腻,于是他决定拿恰好 $k$ 天出来去外面吃饭。 但连续两天都在同一个地方吃饭容易腻,于是他希望“不能连续两天都去同一个地方吃饭(外卖除外)”的规则 阅读全文
posted @ 2025-04-04 22:36 onlyblues 阅读(33) 评论(0) 推荐(0)

Web Analytics