SZUOJ - 最長重複子串 —— string應用

一、題面   二、題解 利用string的subtr()函數和find()函數簡化編程,注意題面說明子串是不重疊的   三、實現代碼 #include <iostream> #include <string> using namespace std; int main(){ int t; cin>>t; while(t--){ int i,j;
相關文章
相關標籤/搜索