https://www.luogu.com.cn/record/191346752
B3837 [GESP202303 二级] 画三角形
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
char c='A';
for(int i=1;i<=n;i++)
{
for(int j=1;j<=i;j++)
{
cout<<c;
c++;
if(c>"Z")
{
c='A';
}
}
cout<<endl;
}
return 0;
}