WA求调
查看原帖
WA求调
1471251
zjx1203楼主2024/12/4 16:27
#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c=65,p=-1;
	cin>>a;
	for(int i=1;i<=a;i++){
		if(i!=1) c=p+1;
		for(int j=1;j<=a;j++){
			if(j==1) p=c;
			cout<<char(c);
			c++;
			if(c==91)  c=65;
		}
		cout<<endl;
	}
	return 0;
}


2024/12/4 16:27
加载中...