CSL的字符串(牛客竞赛)

题目链接 参考代码(其实本来最早见到这个思想不是这位大佬的,但是由于牛客提交太多了,我参考的那个代码找不到了) 解释都放在代码里面了,做了些笔记。 #include<bits/stdc++.h> using namespace std; typedef long long LL; const int inf = 0x3f3f3f3f; int cnt[505]; bool vis[505]; /
相关文章
相关标签/搜索