You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
分组 将字符串反转一下,后缀就变成前缀了,然后就可以扔到 trie 树上了,考虑统计子树和,我们就可以知道某一个前缀可以匹配多少个字符串了,然后贪心一手,尽量能匹配的前缀都匹配上就行了。 #include #include using namespace std; typedef long long ll;const int N = 1e
The text was updated successfully, but these errors were encountered:
https://ptilopsisw.github.io/2022/10/03/2022-10-3%E6%80%BB%E7%BB%93/
分组 将字符串反转一下,后缀就变成前缀了,然后就可以扔到 trie 树上了,考虑统计子树和,我们就可以知道某一个前缀可以匹配多少个字符串了,然后贪心一手,尽量能匹配的前缀都匹配上就行了。 #include #include using namespace std; typedef long long ll;const int N = 1e
The text was updated successfully, but these errors were encountered: