题解 1728: 字符串的查找删除

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

字符串的查找删除-题解(Python代码)

由于本题需要替换各种形式的字符,包括in,In,iN和IN```pythontemp=input()temp=temp.casefold()#变成小写length=len(temp)whiletemp:st=input()st_1=st.casefold()#把原字符全部小写赋值给st_1whilet

字符串的查找删除-题解(C++代码)

```cpp#include#includeusingnamespacestd;intmain(){stringshorts,cur,lowerCur;cin>>shorts;//将回车符去掉getchar();//因为要忽略大小写//所以将所有的大写字母变成小写for(inti=0;i