摘要: Codeforces 题解 - [Codeforces Round 812 (Div. 2)C. Build Permutation] 题目链接 题目描述 A \(\mathbf{0}\)-indexed array \(a\) of size \(n\) is called good if for 阅读全文
posted @ 2025-01-21 20:10 MatinalCosmos 阅读(40) 评论(0) 推荐(0)
摘要: Codeforces 题解 - [Codeforces Round 867 (Div. 3)-D. Super-Permutation] 题目链接 题目描述 A permutation is a sequence \(n\) integers, where each integer from \(1 阅读全文
posted @ 2025-01-15 22:29 MatinalCosmos 阅读(56) 评论(0) 推荐(0)
摘要: Codeforces 题解 - [B. Friendly Arrays] 题目链接 题目描述 You are given two arrays of integers — \(a_1, \ldots, a_n\) of length \(n\), and \(b_1, \ldots, b_m\) o 阅读全文
posted @ 2025-01-11 20:01 MatinalCosmos 阅读(29) 评论(0) 推荐(0)
摘要: Codeforces 题解 - [Codeforces Round 993 (Div. 4) E.Insane Problem] 题目链接 题目描述 Wave 获得了五个整数 $k$ 、 $l_1$ 、 $r_1$ 、 $l_2$ 和 $r_2$ 。 Wave 希望你帮助她计算出有序对 $(x, y 阅读全文
posted @ 2024-12-28 13:39 MatinalCosmos 阅读(34) 评论(0) 推荐(0)
摘要: Codeforces 题解 - [Educational Codeforces Round 173 B.Digits] 题目链接 题目描述 Artem 在黑板上连续写下数字 d ,恰好是 n! 次。因此,他得到的数是 dddddd…ddd (恰好是 n! 位)。 现在他很好奇,从 1 到 9 中的哪 阅读全文
posted @ 2024-12-26 21:35 MatinalCosmos 阅读(154) 评论(0) 推荐(2)
摘要: Codeforces 题解 - [Educational Codeforces Round 173 (Rated for Div. 2) B.Digits] 题目链接 题目大意 n! 个 d 组成的形如 dd ''' d (n! 个) 求能被1-9中哪些奇数整除 每个用例按升序输出 输入 3 2 6 阅读全文
posted @ 2024-12-26 11:54 MatinalCosmos 阅读(40) 评论(0) 推荐(1)