提交时间:2024-01-07 11:25:08

运行 ID: 34407

#include<iostream> using namespace std; int main(){ int n; char z='A'; cin>>n; for(int i=1;i<=n;i++){ char x=z; for(int j=1;j<=n;j++){ cout<<x; ++x; if(x>'Z')x='A'; } ++z; if(z>'Z')z='A'; cout<<'\n'; } return 0; }