牛客練習賽42 A:字符串

鏈接:https://ac.nowcoder.com/acm/contest/393/A 來源:牛客網   找出連續相同最大的部分,這樣可以保證 最長公共前綴 和 最長公共後綴 都是最大的。 #include<stdio.h> #include<string.h> #define N 200020 char a[N],b[N]; int maxi(int a,int b) { return a>
相關文章
相關標籤/搜索