#include<iostream>
#include<string.h>
using namespace std;
int main(){
string str="";
int N;
cin>>N;
for(int i=0; i<N; i++){
string s=str;
str.append(1,'A'+i);
str+=s;
}
cout<<str<<endl;
return 0;
}
原文地址:https://www.cnblogs.com/A-Little-Nut/p/10350974.html
时间: 2024-10-29 11:47:07