题目链接 大佬博客的字符串操作非常简洁,学习了。 另一个大佬博客 又一个大佬博客非常详细的讲解了字符串操作 #include<iostream> using namespace std; #define _for(i,a,b) for(int i=(a);i<(b);i++) string str[2010]; inline void work(int x) { int len=(x<<1); _for(i,x,len)str[i]=str