上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 41 下一页
摘要: Problem Statement$N$ players played a round-robin tournament. You are given an $N$-by-$N$ table $A$ containing the results of the matches. Let $A_{i,j 阅读全文
posted @ 2022-09-04 21:16 灰鲭鲨 阅读(62) 评论(0) 推荐(0)
摘要: Problem StatementFor two strings $A$ and $B$, let $A+B$ denote the concatenation of $A$ and $B$ in this order. You are given $N$ strings $S_1,\ldots,S 阅读全文
posted @ 2022-09-04 21:13 灰鲭鲨 阅读(125) 评论(0) 推荐(0)
摘要: Problem StatementThere are $N$ balls arranged from left to right. The color of the $i$-th ball from the left is Color $C_i$, and an integer $X_i$ is w 阅读全文
posted @ 2022-09-04 21:04 灰鲭鲨 阅读(87) 评论(0) 推荐(0)
摘要: Problem StatementTakahashi will toss a coin $N$ times. He also has a counter, which initially shows $0$. Depending on the result of the $i$-th coin to 阅读全文
posted @ 2022-09-04 20:43 灰鲭鲨 阅读(97) 评论(0) 推荐(0)
摘要: Problem Statement We have a variable $X$ and $N$ kinds of operations that change the value of $X$. Operation $i$ is represented as a pair of integers 阅读全文
posted @ 2022-09-04 18:48 灰鲭鲨 阅读(89) 评论(0) 推荐(0)
摘要: Problem Statement We have a directed graph with $N$ vertices and $M$ edges. Edge $i$ is directed from Vertex $A_i$ to $B_i$.and has a weight of $C_i$. 阅读全文
posted @ 2022-09-04 18:35 灰鲭鲨 阅读(83) 评论(0) 推荐(0)
摘要: Problem Statement You are given two strings $S$ and $T$ consisting of lowercase English letters. Takahashi starts with the string $S$. He can perform 阅读全文
posted @ 2022-09-04 15:57 灰鲭鲨 阅读(289) 评论(0) 推荐(0)
摘要: 题目描述 Bessie 的 $N$($2\le N\le 10^5$)个奶牛伙伴(编号为 $1\cdots N$)每一个都拥有自己的农场。对于每个 $1\le i\le N$,伙伴 i 想要访问伙伴 $a_i$($a_i\neq i$)。 给定 $1\ldots N$ 的一个排列 $(p_1,p_2 阅读全文
posted @ 2022-07-11 10:17 灰鲭鲨 阅读(100) 评论(0) 推荐(0)
摘要: 题目描述 Bessie 找到了一个长度不超过 $2 \cdot 10^5$ 且仅包含字符 'C','O' 和 'W' 的字符串 $s$。她想知道是否可以使用以下操作将该字符串变为单个字母 'C'(她最喜欢的字母): 选择两个相邻相等的字母并将其删除。 选择一个字母,将其替换为另外两个字母的任一排列。 阅读全文
posted @ 2022-07-11 10:10 灰鲭鲨 阅读(341) 评论(0) 推荐(0)
摘要: [USACO22OPEN] 题目描述 奶牛们正在尝试一种相互交换编码信息的新方法,她们在相关的字母中混入不相关的字母,使信息难以解码。 奶牛们传输两个字符串 $s$ 和 $t$,每个字符串的长度不超过 $10^5$,仅由小写字母 'a' 到 'r' 组成。为了尝试理解这条编码消息,你将被给定 $Q$ 阅读全文
posted @ 2022-07-11 09:54 灰鲭鲨 阅读(141) 评论(0) 推荐(0)
上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 41 下一页