摘要: 感觉题意没讲明白ii,j,k。。。。 以下摘自他人博客:https://www.cnblogs.com/eason9906/p/11754846.html 画画图可以发现dis[i][j]==dis[j][k]==dis[i][k]这个连等式等于1是不可能的,只能是等于0。这个连等式等于0,说明了i 阅读全文
posted @ 2020-08-05 20:29 古比 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 把一种字符串替换成另一种,STL类型的题 1 #include<bits/stdc++.h> 2 using namespace std; 3 int main() 4 { 5 string S,T,P; 6 cin>>S>>T>>P; 7 int len=T.size(); 8 while(1){ 阅读全文
posted @ 2020-08-05 20:07 古比 阅读(113) 评论(0) 推荐(0) 编辑