蓝桥杯--FJ的字符串

http://47.104.209.207/problem/old1064

字符串处理。

 1 #include <iostream>
 2 #include <cstring>
 3 #include <algorithm>
 4 
 5 using namespace std;
 6 int main()
 7 {
 8     int n;
 9     cin>>n;
10     string s="A";
11     for(int i=1;i<n;i++){
12         string t=s;
13         s+='A'+i;
14         s+=t;
15     }
16     cout<<s;
17     return 0;
18 }
原文地址:https://www.cnblogs.com/greenofyu/p/14454282.html