SZUOJ - 最长重复子串 —— string应用

一、题面   二、题解 利用string的subtr()函数和find()函数简化编程,注意题面说明子串是不重叠的   三、实现代码 #include <iostream> #include <string> using namespace std; int main(){ int t; cin>>t; while(t--){ int i,j;
相关文章
相关标签/搜索