洛谷P1019 单词接龙

https://www.luogu.org/problemnew/show/P1019ios 先预处理任意两个单词是否能相连及重叠长度,注意重叠长度必须小于两个字符串的长度。spa 而后跑一遍dfs就行了。code #include<iostream> #include<cstdio> #include<cctype> #include<cstring> #include<algorithm> u
相关文章
相关标签/搜索