1 2 3 4 5 ··· 65 下一页
摘要: F - Grid Clipping Problem Statement There is a grid with $H$ rows and $W$ columns. The cell at the $r$-th row from the top and $c$-th column from the 阅读全文
posted @ 2026-03-26 17:23 onlyblues 阅读(2) 评论(0) 推荐(0)
摘要: PPIIIGG 题目描述 在超级猪星上,超级小猪研究员发现了一个仅由字符 P、I、G 组成的字符串 $S$。现在需要统计其中有多少个 超级 PIG 序列。 一个 超级 PIG 序列 需要满足以下条件: 它由 $a$ 个 P、$b$ 个 I、$c$ 个 G 依次拼接而成,即形如 $\underbrac 阅读全文
posted @ 2026-03-24 11:18 onlyblues 阅读(4) 评论(0) 推荐(0)
摘要: E - Simple Division Problem Statement You are given integers $N$ and $M$. Find the remainder when $\lfloor N/M \rfloor$ is divided by $\color{red}{100 阅读全文
posted @ 2026-03-08 23:05 onlyblues 阅读(8) 评论(0) 推荐(0)
摘要: 小红删树 题目描述 给定一棵包含 $n$ 个节点的树,小红将进行如下操作: 考虑当前森林的所有连通块,对于每个连通块,独立地、均匀随机地选择该连通块中的一个节点,之后删除所有被选中的节点(删除后其相邻边也会被移除)。 若某一轮操作开始前所有节点已被删除,则该轮及后续操作无法执行。 请你计算:在前 $ 阅读全文
posted @ 2026-03-05 21:20 onlyblues 阅读(6) 评论(0) 推荐(0)
摘要: G - 221 Subsequence Problem Statement For a sequence $X = (X_1, \dots, X_n)$ of positive integers, we call $X$ a 221 sequence if and only if the lengt 阅读全文
posted @ 2026-02-26 23:23 onlyblues 阅读(11) 评论(0) 推荐(0)
摘要: F. Parabola Independence You are given a set of $n$ quadratic functions $F=\{f_1,f_2,\ldots,f_n \}$, where $f_i(x)=a_i x^2 + b_i x + c_i$. Two functio 阅读全文
posted @ 2026-02-17 19:54 onlyblues 阅读(13) 评论(0) 推荐(0)
摘要: 华黎卡的排列构造 题目描述 华黎卡有一个长度为 $n$ 的神秘排列 $p$。记 $S_k = \sum_{i=1}^k {p_i}$,如果对于所有的 $1 \leq i \leq n$,$S_i$ 都能被 $p_i$ 整除,那么排列 $p$ 被称为 好排列。 要判断一个排列是不是 好排列 实在是太容 阅读全文
posted @ 2026-02-16 19:00 onlyblues 阅读(9) 评论(0) 推荐(0)
摘要: F1. Again Trees... (Easy Version) This is the easy version of the problem. The difference between the versions is that in this version, $k \leq 4$. Yo 阅读全文
posted @ 2026-02-14 17:15 onlyblues 阅读(10) 评论(0) 推荐(0)
摘要: 数字积木 题目描述 Bingbong 给定一棵包含 $n$ 个节点的积木树,树的节点编号为 $1 \sim n$,节点 $i$ 的权值为 $a_i$,其中 $a$ 由 $0 \sim n-1$ 的数字组成,且每个数字只出现一次。 定义树上一个连通子图的权值为:构成该连通子图的所有节点的权值中未出现过 阅读全文
posted @ 2026-02-11 23:16 onlyblues 阅读(13) 评论(0) 推荐(0)
摘要: C2. XOR-convenience (Hard Version) This is the hard version of the problem. The difference between the versions is that in this version, $1 \le i \le 阅读全文
posted @ 2026-01-25 12:21 onlyblues 阅读(15) 评论(0) 推荐(0)
1 2 3 4 5 ··· 65 下一页
Web Analytics