提交时间:2024-01-07 14:24:59

运行 ID: 34472

#include "bits/stdc++.h" using namespace std; char e='A',w='A'; int n; int main(){ cin>>n; for(int i=1;i<=n;i++){ for(int j=1;j<=n;j++){ if(w+1>'Z')w='A'; cout<<e; e++;} e=w+1; w++; cout<<endl;} }