[蓝桥杯]FJ的字符串
懂得自然懂
#include<bits/stdc++.h>
using namespace std
;
char a
[27];
string s
,t
;
int main()
{
int n
;
cin
>>n
;
char c
='A';
for(int i
=1;i
<=26;i
++)
{
a
[i
]=c
;
c
=c
+1;
}
for(int i
=1;i
<=n
;i
++)
{
t
=s
;
s
=s
+a
[i
];
s
=s
+t
;
}
cout
<<s
<<endl
;
return 0;
}
转载请注明原文地址:https://blackberry.8miu.com/read-13119.html