北邮oj140字符串操作

本题本想使用字符数组实现,但是关于替代的情况,字符数组的长度变化,和元素移动没写出方法。遂专用STL,只是注意reverse(),string.replace()的使用方法 #include<bits/stdc++.h> using namespace std; string s; int main(){ while(cin>>s){ int t; scanf("%d",&t); w
相关文章
相关标签/搜索