提交时间:2024-01-07 11:13:24

运行 ID: 34403

#include <bits/stdc++.h> using namespace std; int main(){ string a="ABCDEFGHIJKLMNOPQRSTUVWXYZ"; int x,js=0,js2=0; cin>>x; for(int i=0;i<x;i++){ js=js2; for(int j=0;j<x;j++){ cout<<a[js%26]; js++; } js2++; cout<<endl; } return 0; }