#include<bits/stdc++.h> using namespace std; int n; int main(){ cin>>n; char c='A'; for(int i=1; i<=n; i++){ for(int j=1; j<=i; j++){ if(c > 'Z') c='A'; cout<<c; c++; } cout<<endl; } return 0; }
使用您的 清北信奥登峰计划 通用账户