版本比较
题解:P10992 [蓝桥杯 2023 国 Python A] 最长同类子串
正文
增加 2 行删除 2 行
106 行未改动全部展开10710810911011111111211311411518 行未改动1341351361371381381391401411423 行未改动106 行未改动全部展开}
int main(){ cin.tie(0)->sync_with_stdio(false);
string xa,xb;cin>>xa>>xb; n=xa.length(),xa=' '+xa; m=xb.length(),xb=' '+xb; for(int i=1;i<=n;i++) a[i]=xa[i]-'a';18 行未改动 if(check(mid)) l=mid; else r=mid-1; } cout<<l<<"\n";
# ifdef TakanashiHoshino cerr<<"\nUsed time: "<<clock()*1.0/CLOCKS_PER_SEC<<"s.\n"; # endif return 0;3 行未改动