摘要: 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 阅读(4) 评论(0) 推荐(0)
摘要: 小红删树 题目描述 给定一棵包含 $n$ 个节点的树,小红将进行如下操作: 考虑当前森林的所有连通块,对于每个连通块,独立地、均匀随机地选择该连通块中的一个节点,之后删除所有被选中的节点(删除后其相邻边也会被移除)。 若某一轮操作开始前所有节点已被删除,则该轮及后续操作无法执行。 请你计算:在前 $ 阅读全文
posted @ 2026-03-05 21:20 onlyblues 阅读(4) 评论(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 阅读(7) 评论(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 阅读(12) 评论(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 阅读(8) 评论(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 阅读(8) 评论(0) 推荐(0)
摘要: 数字积木 题目描述 Bingbong 给定一棵包含 $n$ 个节点的积木树,树的节点编号为 $1 \sim n$,节点 $i$ 的权值为 $a_i$,其中 $a$ 由 $0 \sim n-1$ 的数字组成,且每个数字只出现一次。 定义树上一个连通子图的权值为:构成该连通子图的所有节点的权值中未出现过 阅读全文
posted @ 2026-02-11 23:16 onlyblues 阅读(10) 评论(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 阅读(14) 评论(0) 推荐(0)
摘要: Balanced 01-String 题目描述 小苯有一个长度为 $n$ 的字符串 $s$,只包含字符 $\texttt{'0'}$、$\texttt{'1'}$ 和 $\texttt{'?'}$。 他定义一个 $01$ 字符串是平衡的,当且仅当字符串中所有相邻两个字符相同的对数(即满足 $s_i 阅读全文
posted @ 2026-01-21 23:19 onlyblues 阅读(9) 评论(0) 推荐(0)
摘要: E - Cookies Problem Statement There are $10^{100}$ cookies of each of $N$ types. The deliciousness per cookie of the $i$-th type is $A_i$. You will ch 阅读全文
posted @ 2026-01-13 11:22 onlyblues 阅读(7) 评论(0) 推荐(0)
Web Analytics