摘要: 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 阅读(16) 评论(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 阅读(91) 评论(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 阅读(19) 评论(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 阅读(22) 评论(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 阅读(30) 评论(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 阅读(80) 评论(0) 推荐(0)
摘要: 题目编号 L1-110(这不是字符串题) 原题链接 题目内容 小特需要对一个正整数序列进行 M 次操作,操作类型包括: 查找替换:查找连续子序列并替换为指定序列(仅替换第一个匹配项)。 插入平均数:在相邻和为偶数的数字间插入平均数。 区间翻转:翻转指定区间内的子序列。 最终输出操作后的序列。 输入格 阅读全文
posted @ 2025-04-20 23:52 usedchang 阅读(283) 评论(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 阅读(20) 评论(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 阅读(32) 评论(0) 推荐(0)
摘要: C.You Soared Afar With Grace 原题链接 Problem Statement 给你一个长度为 n 的排列组合 a 和 b 。您最多可以执行下面的操作 n 次: 选择两个索引 i 和 j ( 1≤i,j≤n , i≠j ),将 ai 与 aj 交换,将 bi 与 bj 交换。 阅读全文
posted @ 2025-04-06 12:50 usedchang 阅读(108) 评论(0) 推荐(0)