摘要: E.Random Swaps of Balls 问题陈述 有 \(N - 1\) 个白球和一个黑球。这些 \(N\) 球排列成一排,黑球最初位于最左边的位置。 高桥正好要进行下面的操作 \(K\) 次。 在 \(1\) 和 \(N\) 之间均匀随机地选择一个整数,包括两次。假设 \(a\) 和 \( 阅读全文
posted @ 2025-05-17 12:02 usedchang 阅读(13) 评论(0) 推荐(0)
摘要: E.Sum of All Substrings 原题链接 Problem Statement You are given a string \(S\) of length \(N\) consisting of digits from 1 through 9. For each pair of in 阅读全文
posted @ 2025-05-17 09:09 usedchang 阅读(8) 评论(0) 推荐(0)
摘要: D. Flower Boy 题意 给你两个序列a,b,其中保证a的长度 \(n\) 大于b的长度 \(m\) ,要求从a左往右查询匹配b从左往右每一位的元素,当且仅当$ a_i >= b_j $可以正常匹配,现在允许一种操作,选择b数组中的一个数,消耗这个数大小的价值复制到a中任意位置,要求在最多进 阅读全文
posted @ 2025-04-26 00:28 usedchang 阅读(82) 评论(0) 推荐(0)
摘要: Codeforces Round 900 (Div. 3) DEF D. Reverse Madness? 原题链接 Problem Statement You are given a string \(s\) of length \(n\), containing lowercase Latin 阅读全文
posted @ 2025-04-23 21:04 usedchang 阅读(6) 评论(0) 推荐(0)
摘要: B. Fortune Telling Haha, try to solve this, SelectorUnlimited! — antontrygubO_o Your friends Alice and Bob practice fortune telling. Fortune telling i 阅读全文
posted @ 2025-04-21 19:21 usedchang 阅读(13) 评论(0) 推荐(0)
摘要: D.Avoid K Palindrome 原题链接 Problem Statement You are given a directed graph with \(N\) vertices and \(M\) edges. The \(j\)-th directed edge goes from v 阅读全文
posted @ 2025-04-21 15:54 usedchang 阅读(21) 评论(0) 推荐(0)
摘要: D. 真爱粉Tk(三) \(\hspace{15pt}\)众所不周知,Tk 是坤的真爱粉,所以 Tk 对所有与 \(25\) 有关的东西都极其敏感。一天邪恶的黑粉给 Tk 一个长度为 \(n\) 的数组 \(\{a_1,a_2,\dots,a_n\}\),Tk 找到了你,希望你将数组分割成 \(k\ 阅读全文
posted @ 2025-04-21 15:32 usedchang 阅读(76) 评论(0) 推荐(0)
摘要: 题目编号 L1-110(这不是字符串题) 原题链接 题目内容 小特需要对一个正整数序列进行 M 次操作,操作类型包括: 查找替换:查找连续子序列并替换为指定序列(仅替换第一个匹配项)。 插入平均数:在相邻和为偶数的数字间插入平均数。 区间翻转:翻转指定区间内的子序列。 最终输出操作后的序列。 输入格 阅读全文
posted @ 2025-04-20 23:52 usedchang 阅读(227) 评论(0) 推荐(0)
摘要: Time Limit: 2 sec / Memory Limit: 1024 MB Score : 450 points Problem Statement You are given an integer sequence \(A=(A_1,\ldots,A_N)\) of length \(N\ 阅读全文
posted @ 2025-04-20 12:03 usedchang 阅读(11) 评论(0) 推荐(0)
摘要: D.Avoid K Palindrome 原题链接 Problem Statement You are given a string \(S\) of length \(N\) consisting of characters A, B, and ?. You are also given a po 阅读全文
posted @ 2025-04-16 20:39 usedchang 阅读(18) 评论(0) 推荐(0)