上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 65 下一页
摘要: F. Cutting Game Alice and Bob were playing a game again. They have a grid of size $a \times b$ ($1 \le a, b \le 10^9$), on which there are $n$ chips, 阅读全文
posted @ 2024-05-21 15:28 onlyblues 阅读(129) 评论(0) 推荐(0)
摘要: Find Products of Elements of Big Array A powerful array for an integer x is the shortest sorted array of powers of two that sum up to x. For example, 阅读全文
posted @ 2024-05-13 17:09 onlyblues 阅读(27) 评论(0) 推荐(0)
摘要: E. Unique Array You are given an integer array $a$ of length $n$. A subarray of $a$ is one of its contiguous subsequences (i. e. an array $[a_l, a_{l+ 阅读全文
posted @ 2024-05-08 21:17 onlyblues 阅读(74) 评论(0) 推荐(0)
摘要: G - Mediator Problem Statement Beware the special input format and the smaller memory limit than usual. There is an undirected graph with vertices $1, 阅读全文
posted @ 2024-05-06 21:04 onlyblues 阅读(30) 评论(0) 推荐(0)
摘要: G2. Division + LCP (hard version) This is the hard version of the problem. In this version $l\le r$. You are given a string $s$. For a fixed $k$, cons 阅读全文
posted @ 2024-05-03 20:10 onlyblues 阅读(175) 评论(0) 推荐(0)
摘要: D2. Reverse Card (Hard Version) The two versions are different problems. You may want to read both versions. You can make hacks only if both versions 阅读全文
posted @ 2024-05-02 18:57 onlyblues 阅读(177) 评论(0) 推荐(0)
摘要: Find All Possible Stable Binary Arrays II You are given 3 positive integers zero, one, and limit. A binary array arr is called stable if: The number o 阅读全文
posted @ 2024-04-28 23:56 onlyblues 阅读(57) 评论(0) 推荐(0)
摘要: 智乃的括号匹配 题目描述 智乃现在有一个仅由 "(" 和 ")" 组成长度大小为 $N$ 的字符串,字符串的每一个位置的字符都有自己的权值 $v_i$ ​和代价 $c_i$​。 智乃定义一对在该字符串中配对的括号对,假设左括号的坐标为 $i$,右括号为 $j$,该括号对的价值为两个括号权值的乘积 $ 阅读全文
posted @ 2024-04-27 18:13 onlyblues 阅读(87) 评论(4) 推荐(0)
摘要: 交友问题 题目背景 题目描述 洛谷上有 $n$ 位用户,这些用户组成了一个双向的网络。 洛谷的图片分享机制如下:如果第 $i$ 个用户向他的好友 $j$ 分享了一张照片,那么,$j$ 的所有好友 $k$ 就能看到这张照片。$j$ 也可以看到这张照片。 现在,用户 $u_i$ 想分享一张照片,但是TA 阅读全文
posted @ 2024-04-24 20:06 onlyblues 阅读(61) 评论(0) 推荐(0)
摘要: Bingbong的回文路径 题目描述 Bingbong 有一棵有根树,根节点为 $1$,总共有 $n$ 个节点。树中的节点通过 $n−1$ 条无向边相连,每条边的权重为 $1$。 树中的每个节点包含一个小写字母。Bingbong 将选择从节点 $u$ 开始,并在选择最短路径的情况下到达节点 $v$。 阅读全文
posted @ 2024-04-20 16:15 onlyblues 阅读(97) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 65 下一页
Web Analytics