P2964-[USACO09NOV]A Coin Game S 题目: 题目描述: 小 A 和小 B 在玩游戏。 初始时,有 $n$ 个硬币被摆成了一行,从左至右第 $i$ 个硬币的价值为 $c_i$。 游戏的规则是,两人交替从这
SP1812-LCS2 - Longest Common Substring II 题目: 题目描述: A string is finite sequence of characters over a non-empty finite set Σ. In this problem, Σ is the set of lowercase letters. Substring, also called factor, is a consecutive sequence of characters occurrences at least once in a string. Now your task is a bit harder, for some given strings, find the length of
SP1811-LCS - Longest Common Substring 题目: 题目描述: A string is finite sequence of characters over a non-empty finite set Σ. In this problem, Σ is the set of lowercase letters. Substring, also called factor, is a consecutive sequence of characters occurrences at least once in a string. Now your task is simple, for two given strings, find the length of the longest common
SP7258-SUBLEX - Lexicographical Substring Search 题目: 题目描述: Little Daniel loves to play with strings! He always finds different ways to have fun with strings! Knowing that, his friend Kinan decided to test his skills so he gave him a string S and asked him Q questions of the form: If all distinct substrings of string S were sorted lexicographically, which one will be the
P3975-[TJOI2015]弦论 题目: 题目描述: 为了提高智商,ZJY 开始学习弦论。这一天,她在《String theory》中看到了这样一
P4512-【模板】多项式除法 题目: 题目描述: 给定一个 $n$ 次多项式 $F(x)$ 和一个 $m$ 次多项式 $G(x)$ ,请求出多项式 $Q(x)$, $R(x)$,满足以下条件: $Q(x)$ 次数为 $n